Created
February 3, 2016 17:58
-
-
Save vitkarpov/1db1c72397f0d17c90b3 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"; | |
// it doesn't throw an error but in fact does nothing: a equals foo, not boo | |
a[0] = "b"; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment