Concatenated strings

Tell us what’s happening:
Var myStr has refused to be = to the two sentences what am I doing wrong?

Your code so far


// Only change code below this line

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

Your browser information:

User Agent is: Mozilla/5.0 (Linux; Android 9; SAMSUNG SM-J415F) AppleWebKit/537.36 (KHTML, like Gecko) SamsungBrowser/11.1 Chrome/75.0.3770.143 Mobile Safari/537.36.

Challenge: Concatenating Strings with the Plus Equals Operator

Link to the challenge:

You left out

“is”

in the second statement

You are using += correctly, but the two strings are not quite correct. Check for typos.

When exact text matters, I recommend copy + paste : )

Thanx so much I got it.

1 Like