Basic JS: Concatenating Strings with the Plus Equals Operator

Tell us what’s happening:
This part really got me stuck, can someone let me know how to solve this error.

Your code so far

// Example
var ourStr = "I come first. ";
ourStr += "I come second.";

// Only change code below this line

var myStr = "This is my first sentence. ";
myStr += "This is the second sentence.";

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.132 Safari/537.36.

Challenge: Concatenating Strings with the Plus Equals Operator

Link to the challenge:

Let’s play the game can you find the typo huge hint it’s somwhere in here: "This is my first sentence. ";


:man_facepalming: “my” should be “the”

Thank You!!! :raised_hands:

Well done you earned 10 points :3

I was stuck on that for a cool min too, aha simple typo caused so much low-key stress lol thanks for the help.

yea… well welcome to programming

1 Like

strings are immutable