Tell us what’s happening:
Correct the assignment to myStr so it contains the string value of Hello World using the approach shown in the example above.
Your code so far
// Setup
var myStr = “Jello World”;
// Only change code below this line
myStr[0] = “H”; // Change this line
// Only change code above this line
var myStr = “Hello World”;
// Setup
var myStr = "Jello World";
// Only change code below this line
myStr[0] = "H"; // Change this line
// Only change code above this line
var myStr = "Hello World";
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.97 Safari/537.36.
Challenge: Understand String Immutability
Link to the challenge:
