Basic JavaScript - Concatenating Strings with the Plus Equals Operator

Tell us what’s happening:

From what I can see I did everything correctly. It says I need a single character space between the two strings but I have already added that.

Your code so far

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

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36

Challenge Information:

Basic JavaScript - Concatenating Strings with the Plus Equals Operator

Hello!

let myStr; "This is the first sentence. ";
myStr += “This is the second sentence.”;

I do not think the semi colon should be after let myStr. Try using the assignment operator there. If you look at the example, I am sure you will see what should be there, and hopefully it will help you move on.

Keep up the good progress.

1 Like