Basic JavaScript - Concatenating Strings with the Plus Equals Operator

Tell us what’s happening:
Describe your issue in detail here.
I am setting it up but i keep getting the error that saids i have not set up myStr to say this is the first sentence. this is the second sentence. but my console saids otherwise.
console.log(myStr);
Your code so far

var myStr = "This is the first sentence. ";
myStr += "This is the second sentence. ";
console.log(myStr);

Your browser information:

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

Challenge: Basic JavaScript - Concatenating Strings with the Plus Equals Operator

Link to the challenge:

You need to get rid of the extra space at the end here. Also the challenge started out with declaring the variable with let, but you changed it to var. You should not change that to var.

Thank you i was struggling with that for ages

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