Is there "0b" or something similar to represent a binary number in Javascript
Posted
by Misha Moroshko
on Stack Overflow
See other posts from Stack Overflow
or by Misha Moroshko
Published on 2010-05-10T13:59:27Z
Indexed on
2010/05/10
14:04 UTC
Read the original article
Hit count: 243
JavaScript
I know that 0x is a prefix for hexadecimal numbers in Javascript. For example, 0xFF stands for the number 255.
Is there something similar for binary numbers ? I would expect 0b1111 to represent the number 15, but this doesn't work for me.
© Stack Overflow or respective owner