Run test doesn't work on one part

Tell us what’s happening:
Hey guys, I can’t seem to get the site to see that I have got this right? It won’t accept my result.
It says that the var myStr hasn’t been given the right value…???

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/79.0.3945.130 Safari/537.36.

Challenge: Concatenating Strings with Plus Operator

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

Ok, I found the error.

var myStr = "This is the start. " + “This is the end.”

It needed to have a space after the first full stop "This is the start. " and it’s not written in the side notes.

1 Like

Build myStr from the strings "This is the start. "

they say to add the space tho