Concatenating Strings with Plus Operator +1

Tell us what’s happening:

I don’t even understand what my error is?

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

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

// here's what ourStr resolves to:
"I come first. I come second."
// here's what myStr resolves to:
"This is the start.This is the end."

Do you see the problem now? It’s small.

1 Like

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

Put space before the end of the first string.

1 Like