Basic JavaScript - Understand String Immutability

Tell us what’s happening:
Describe your issue in detail here.
I don’t understand where I’m wrong, can someone help me?

Your code so far

// Setup
var myStr = "jello World";

// Only change code below this line
myStr = "Hello World"; // 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/103.0.0.0 Safari/537.36

Challenge: Basic JavaScript - Understand String Immutability

Link to the challenge:

As it says,

You should not change the code above the specified comment.

Reset your code, and notice the first line. You changed it.

1 Like