2
I wanted to understand something, because when I put the number 0
ahead at the time of printing on console
the number comes out totally different, but when I don’t put the number 0
at the beginning the number appears normal?
var numero = 066233;
var numero2 = 66233;
console.log(numero,numero2)
Just out of curiosity, if you do
var numero = 068233;
is no longer an octal because the digit8
causes the lexicographer to interpret the number as decimal.– Augusto Vasques