Concatenating Strings with the Plus Equals Operators

Concatenating Strings with the Plus Equals Operators
0

#1

Tell us what’s happening:

Your code so far


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

// Only change code below this line

var myStr;
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/68.0.3440.106 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

Need to add a space after the period in your first sentence like show in the example
Should be

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