Concatenating Strings with the Plus Equals Operator question

Concatenating Strings with the Plus Equals Operator question
0

#1

Tell us what’s happening:
What am I doing wrong?

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.

Your code so far
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 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.2988.0 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


#2

You are missing a space and a dot at the end in the first string (also a semicolon but i don’t think the tests cares about that).


#3

Thank you very much!