In JS the leading 0 converts the given number in octal base so 012 = (12)8 = (10)10
0
012 = (12)8 = (10)10
548k questions
547k answers
4 comments
86.3k users