Moraki Moraki - 8 months ago 40
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!


Yes, it means the following value is in hexadecimal:

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