Why is this code not work: Concatenating Strings with Plus Operator

Tell us what’s happening:

Your code so far


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

// Only change code below this line

var myStr = "This is the start." + "This is the end.";


Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 6.3; 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-plus-operator/

1 Like

Notice that the spacing must be exactly like the spacing is in the challenge.

you have : “This is the start.”
while the challenge wants you to write: "This is the start. " (a space before the ")

i usually just copy paste the strings so that this doesnt happen

wow, thanks a lot, its work . I was thinking before a space has to between the plus operator (" + ").
anyhow thank you.

1 Like