I have this code:
console.log(066); // 54
Why does it log 54, not 66?
I have this code:
console.log(066); // 54
Why does it log 54, not 66?
Because add a prefix 0
will make the number to be considered of base 8(octal), as way 0x
will make the following number to be of base 16(hexa)