Coderwall
Ruby
Python
JavaScript
Front-End
Tools
iOS
More
Tips
Ruby
Python
JavaScript
Front-End
Tools
iOS
PHP
Android
.NET
Java
Jobs
Jobs
Sign In or Up
Joined April 2013
·
rasmus
Rasmus
Estonia
·
·
0 Protips
1 Comments
Posted to
Java to JavaScript: Notes from How To Learn JavaScript Properly
over 1 year ago
You should always add radix parameter to parseInt:
var num = parseInt("1234blue", 10); //1234
Achievements
1 Karma
0 Total ProTip Views
Interests & Skills
css3
javascript
git
Shell
VimL
You should always add radix parameter to parseInt:
var num = parseInt("1234blue", 10); //1234