Basic JavaScript: Understand String ImmutabilityPassed

Tell us what’s happening:
I don’t know what I’m doing wrong, I copy-pasted the solution from the help menu but it still doesn’t work.

Your code so far

// Setup
var 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/86.0.4240.198 Safari/537.36.

Challenge: Understand String Immutability

Link to the challenge:

this is throwing an error, you can’t mutate a string, and that makes all the code stop and fail, including the tests

You need to read the instructions for the challenge again, the solution is there.
Nothing wrong with the challenge, the solution is just simpler than you may expect it to be.

Edit this one :

myStr[0] = “H”;


myStr = “Hello World”;

It is great that you solved the challenge, but instead of posting your full working solution, it is best to stay focused on answering the original poster’s question(s) and help guide them with hints and suggestions to solve their own issues with the challenge.

We are trying to cut back on the number of spoiler solutions found on the forum and instead focus on helping other campers with their questions and definitely not posting full working solutions.

You can post solutions that invite discussion (like asking how the solution works, or asking about certain parts of the solution). But please don’t just post your solution for the sake of sharing it.
If you post a full passing solution to a challenge and have questions about it, please surround it with [spoiler] and [/spoiler] tags on the line above and below your solution code.