Basic JavaScript - Understand String Immutability

Tell us what’s happening:
i changed the string to reassign it to “Hello World” it keeps saying error,i don’t know what is wrong,i have done it well.

Your code so far
var myStr = “Jello World”;

myStr = “Hello World”;

// Only change code below this line

myStr[0] = “H”; // Change this line

// Only change code above this line

**Your browser information:**

User Agent is: <code>Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/ Safari/537.36</code>

**Challenge:** Basic JavaScript - Understand String Immutability

**Link to the challenge:**

It looks like you didn’t change the line the comments are instructing you to change and rather added a new line.

Change the line that the comments are telling you to change and don’t add any new lines.

i changed it,but i thought i had to keep(myStr[0]=“H”),it looks like i had to delete worked thank you

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.