String Immutability Challenge

Tell us what’s happening:
Describe your issue in detail here.

Your code so far


// Setup
let myStr = "Jello World";

// Only change code below this line
myStr = "Hello World";
myStr[0] = "H"; // Change this line
// Only change code above this line

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.93 Safari/537.36 Edg/96.0.1054.53

Challenge: Understand String Immutability

Link to the challenge:

You didn’t change this line, you added another line above it. The line you added above is actually correct, you just need to get rid of the line you were supposed to change.

2 Likes