Skip to content

Instantly share code, notes, and snippets.

@schickm
Created April 23, 2014 22:18
Show Gist options
  • Save schickm/11234442 to your computer and use it in GitHub Desktop.
Save schickm/11234442 to your computer and use it in GitHub Desktop.
Javascript: parseInt
var total = 4 + parseInt("2");
alert(total); // shows "6" again!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment