alert(010),the result is 8. why?
i read the ecmascript 7.8.3 Numeric Literals.
According to the Numeric Literals Lexical,
010 is a invalid numeric literals.
alert(010),the result is 8. why? i read the ecmascript 7.8.3 Numeric Literals. According to
Share
It’s only so when strict mode is turned on :
Otherwise it would break backwards compatibility.