I can't solve this problem

I can’t find the error in this code, thanks.

// Only change code below this line
var myStr = "This is the first sentence. ";
myStr += “This is the second sentence.”;


// Only change code below this line
var 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; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4606.71 Safari/537.36

Challenge: Concatenating Strings with the Plus Equals Operator

Link to the challenge:

There is one white space too much in your second string, maybe that’s the reason :slight_smile:

1 Like

works fine. I have tested this on chrome and on firefox nothing’s wrong with the statement.

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