Skip to content

Instantly share code, notes, and snippets.

@julia-allyce
Created July 19, 2015 15:40
Show Gist options
  • Save julia-allyce/3181c7a877bc410fde08 to your computer and use it in GitHub Desktop.
Save julia-allyce/3181c7a877bc410fde08 to your computer and use it in GitHub Desktop.
"Weak" Typing
var a;
var b;
a = 4;
b = "5";
a += 2; // a == 6
console.log(a + b);
// returns "65"
// PHP/PERL will return 11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment