9 ms·
>> ...parse an integer out of a string in base-10 by default > It does. Not quite: in some browsers (IE), a string starting with '0' gets interpreted as octal
by nollidge 12y ago
>> ...parse an integer out of a string in base-10 by default
> It does.
Not quite: in some browsers (IE), a string starting with '0' gets interpreted as octal. So parseInt('041') === 33 in IE.
Guess how I found out about that.