there are some behaviors I don't understand in Javascript :
console.log(011666)
logged 5046
?typeof typeof 500
logged string
?0
is interpreted as octal number. A simpler example:console.log(010);
typeof 500
returns a string 'number'
. The type of a string 'number'
is 'string'
.console.log(typeof 500);
console.log(typeof 'number');