2 ms·
The funny thing is that in Javascript: 12 == parseInt('012') returns false. :)
by BerislavLopac 17y ago
The funny thing is that in Javascript:
12 == parseInt('012')
returns false. :)
- mhansen 17y agoA leading zero usually means 'this number is octal', so parseInt returns 10. Not very intuitive notation, however.