Concatenating Strings with Plus Operator

Concatenating Strings with Plus Operator
0

#1

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;
myStr= "This is the start." + "This is the end.";

Your browser information:

Your Browser User Agent is: Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.81 Safari/537.36.

Link to the challenge:


#2

You forgot to fill in the “Tell us what’s happening” section. Please describe your question or the problem you are having.


#3

If i am right, you need to have a space in the second part of the string:

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

The space makes difference, try it again, pay attention for the details!!

Regards


#4

This. The + operator here doesn’t automatically add the space. Here the challenge is looking for the space.