Moraki Moraki - 4 months ago 11
Javascript Question

what does 0X mean?

what does 0X mean? I saw it mentioned in class, but my teacher had no idea either. Is it synonymous to the word hexadecimal or does it mean all values? Thanks for your help guys!

Answer

Yes, it means the following value is in hexadecimal:

var num = 0xFF; //255  -  1111 1111
Comments