Basic JavaScript - Understand String Immutability

correct code does not work:
myStr = “Hello World” not working.

** // Setup

let myStr = “Jello World”;

// Only change code below this line

myStr[0] = “H”; myStr = “Hello World”;

// Only change code above this liner**

// Setup
let myStr = "Jello World";

// Only change code below this line
myStr[0] = "H";   myStr = "Hello World";
// Only change code above this line

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/118.0

Challenge: Basic JavaScript - Understand String Immutability

Link to the challenge:

Hello!

You need to modify the default code, not add the solution, then you’ll pass.

1 Like

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