Concatenating Strings with Plus Operator Potential Glitch?

Tell us what’s happening:
Im pretty sure I have concatenated the string properly but is still showing that I have gotten the strings correct please help

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.';

// running tests
myStr should have a value of This is the start. This is the end.
// tests completed

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

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

You are missing a space, ex:

'hello' + 'world'

Will give you

'helloworld'

Yeah, like Dan said! Be precise following the instruction, use spaces:

  • myStr should have a value of This is the start. This is the end.

Haha I can’t believe I missed that Thank you

1 Like