Created
May 11, 2011 18:49
-
-
Save st3v3nhunt/967059 to your computer and use it in GitHub Desktop.
parseInt with radix
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// returns 9 | |
parseInt('09', 10); | |
// returns 0! | |
parseInt('09'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment