I don’t seem to know how to pass this code. From the instruction, making ‘myStr’ into
“Hello World” would work since I should rewrite it (which I’ve done) so I’m not sure why it is not working!
Your code so far
// Setup
var myStr = "Jello World";
// Only change code below this line
myStr[0] = "H"; // Fix Me
myStr = "Hello World";
Your browser information:
User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.100 Safari/537.36.
so you still have the code that is trying to replace myStr[0], which will throw an error. You’re doing exactly the right thing, simply assigning an entirely new string to the variable, but you need to remove the line that is, still, throwing an error.
lol I was about to paste the link to this conversation in the thread you’d started, but you’ve deleted it.
Before posting a question (and not to discourage questions, just suggesting a route to consider), try searching the forums for solutions to your question. Often, they’ve been answered. often, they’ve been answered MANY times. Use that magnifying glass in the menu bar, type in a few keywords, and save yourself the frustration.