Skip to content

Instantly share code, notes, and snippets.

@schickm
Created April 23, 2014 22:14
Show Gist options
  • Select an option

  • Save schickm/11234345 to your computer and use it in GitHub Desktop.

Select an option

Save schickm/11234345 to your computer and use it in GitHub Desktop.
Javascript: adding numbers and strings
var total = 4 + "2";
alert(total); // shows "42"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment