The second parameter parseInt() defines the base from which the first parameter is processed. I played with some numbers and found out that I no longer get the correct answer if the base is more than 36:
parseInt("1", 36); // -> 1 parseInt("1", 37); // -> NaN
Is there a limit? And why is it 36?
I used chrome when I ran tests
Amberlamps
source share