In JS the leading 0 converts the given number in octal base so 012 = (12)8 = (10)10
0
012 = (12)8 = (10)10
2.1m questions
2.1m answers
60 comments
57.0k users