Joined January 2013
·

Froilan Irizarry

Software Developer at Attain
·
Washington, DC
·
·
·

Posted to parseInt() can be dangerous over 1 year ago

Just as @passcod said browser inconsistencies will kill you using parseInt without the radix parameter.

Eg.

// Chrome
parseInt("023");  // 23

// Firefox
parseInt("023");  // 19
Achievements
59 Karma
0 Total ProTip Views
Interests & Skills