Concatenating Strings with the Plus Equals Operator - Help Please

Tell us what’s happening:

Help. What is it that I am not doing right? I have checked and counter checked the below code and it seems OK for me. Kindly help.

Your code so far

// Only change code below this line

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

myStr += “This is the second sentence”;


// 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 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36.

Link to the challenge:
https://learn.freecodecamp.org/javascript-algorithms-and-data-structures/basic-javascript/concatenating-strings-with-the-plus-equals-operator/

Looks like you’re missing a period.

Thanks Will. You are so right. Very simple yet I couldn’t figure it out. Tried it and boom it worked.

1 Like