Instead of Jello World, myStr should be assigned Hello World.
Solutions
Solution 1 (Click to Show/Hide)
// Setup
var myStr = "Jello World";
// Only change code below this line
myStr = "Hello World";
Code Explanation
String literals such as "Jello World" cannot be changed by the individual letter (hence being immutable), so the variable containing the incorrect string must be replaced with the desired string using the assignment operator =
I keep getting an TypeError: 0 is read only message when I tried that. Still not sure if itâs cause Iâm missing something or its an error on their side.
I ran into the TypeError as well when I copies âello Worldâ and pasted it next to the H. However, when I cleared my changes and manually typed it out it worked fine. I hope this helps.
// Setup
var myStr = "Jello World";
// Only change code below this line
myStr[0] = "H"; // Fix Me
/////////////////////////////////////////////////////////////////////////////////
// Setup
var myStr = "Jello World";
// Only change code below this line
myStr = "Hello World"; // Fix Me