Challenge Understand String Immutability - ashish9342/FreeCodeCamp GitHub Wiki

Challenge 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";
⚠️ **GitHub.com Fallback** ⚠️