Concatenating Strings with Plus Operator NOT WORKING

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.1; WOW64; rv:61.0) Gecko/20100101 Firefox/61.0.

Link to the challenge:

Remember the spaces :slight_smile:

1 Like

i don’t get it why do i have to give it a space
'This is the start. ', because i tried this and it worked

Can you repost your latest code, so we can see what you have tried?

Because the challenge says:

Build myStr from the strings "This is the start. " and “This is the end.” using the + operator.

Note the space. Also because you want the output to be “This is the start. This is the end.”. If you don’t use that extra space, you end up with: “This is the start.This is the end.”.

If it helps you clarify the mechanics of interpolation, the expression with an extra space is like writing this: myStr = "This is the start." + " " + "This is the end.";. No, it doesn’t help either, I think :smiley: