Https://www.freecodecamp.org/challenges/understand-string-immutability

// Setup
var myStr = “Jello World”;

// Only change code below this line

myStr[0] = “H”; // Fix Me

me is stumped! help!

Read very carefully what the instructions say. Strings are immutable, so you can’t change the string that is currently stored in myStr.

The instructions say: The only way to change myStr would be to assign it with a new string. It also provides you with an example. Take a close look at that example.

after several failed attempts, I got it, thx

1 Like