Created
July 19, 2015 15:40
-
-
Save julia-allyce/3181c7a877bc410fde08 to your computer and use it in GitHub Desktop.
"Weak" Typing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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