Concatenating Strings with Plus Operator Potential Glitch?

Concatenating Strings with Plus Operator Potential Glitch?
0

#1

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


#2

You are missing a space, ex:

'hello' + 'world'

Will give you

'helloworld'

#3

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.

#4

Haha I can’t believe I missed that Thank you