Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
17 lines (12 sloc) 276 Bytes

Understand String Immutability

In Javascript, String values are immutable, which means that they cannot be altered once created.

Example

var myStr = "Bob";
myStr[0] = "J";

Would not work, the only way would be:

var myStr = "Bob";
myStr = "Job";
Something went wrong with that request. Please try again.