Incorrect Concatenating Strings with the Plus Equals Operator

Tell us what’s happening:

I can’t pin point what’s wrong with the string concatenation below.
The system doesn’t allow me to proceed but I see no errors displayed.

Your code so far

// Example
var ourStr = "I come first. ";
ourStr += "I come second.";

// 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; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.90 Safari/537.36.

Link to the challenge:

Your string is evaluating to:
“This is the fist sentence.This is the second sentence.”
it should be:
“This is the first sentence. This is the second sentence.”
Do you see the problem?

Gotcha! Thanks Michelini.

1 Like