JavaScript: Concatenating Strings with the Plus Equals Operator

Question :
Build myStr over several lines by concatenating these two strings: "This is the first sentence. " and "This is the second sentence." using the += operator. Use the += operator similar to how it is shown in the editor. Start by assigning the first string to myStr , then add on the second string.

My attempt :
var myStr = "This is the first sentence. "

myStr += "This is the second sentence. "

What seems to be the problem???

your sentence needs to match, spaces included

1 Like

Thankyou very much :slight_smile: