Concatenating Strings issue

Tell us what’s happening:
Describe your issue in detail here.
I’m not passing it for some reason

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/98.0.4758.102 Safari/537.36

Challenge: Concatenating Strings with the Plus Equals Operator

Link to the challenge:

You have to accomodate the space, if the expected result is:
“This is the first sentence. This is the second sentence.”
You need to insert space in either end of first sentence or at the beginning of second sentence, your current answer will give this:
“This is the first sentence.This is the second sentence.”

So the code is correct, but I need to add space somewhere?

the code is not correct because you are missing a space somewhere :wink:

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