Skip to content

Instantly share code, notes, and snippets.

@SK-CSE
Created February 10, 2017 07:01
Show Gist options
  • Save SK-CSE/d50c54c9606ca3d1222431e81a1c1ad2 to your computer and use it in GitHub Desktop.
Save SK-CSE/d50c54c9606ca3d1222431e81a1c1ad2 to your computer and use it in GitHub Desktop.

+ operator in string and number

var a = "3"+1+2;
console.log(a); //312

var b = 1+"3"+2;
console.log(b); //132

var c = 1+2+"3";
console.log(c); //33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment