Created
February 3, 2016 17:50
-
-
Save vitkarpov/9054bad8b149aa260759 to your computer and use it in GitHub Desktop.
Strings are immutable
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 = "foo"; | |
var b = a; | |
// b remains the same | |
a += "bar"; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment