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

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

#1

// Setup
var myStr = “Jello World”;

// Only change code below this line

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

me is stumped! help!


#2

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.


#3

after several failed attempts, I got it, thx