Concatenate means to link together. Think of the ‘+’ operator like a chain linking strings together; add the strings just like you add numbers. Make sure your spelling is correct! Take note of spaces between words.
It is something that is staring you at the face after all, check the strings you have to put together and you will eventually notice that you are missing a white space, where it is, is up to you to find out
I am trying to finish this assignment but I think there is a bug… The is identical to the example and I read the direction, but I am not sure why it’s not working. I watch this video on youtube and this person has the same code.
My code:
/ 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.”;
It is saying that incorrect… “myStr should have a value of This is the start. This is the end.” and that is exactly what I have.
Turns out its not a bug, you have to put a space between the start and the double quote.
So the code will be like this var myStr = "This is the start. (space) " + “This is the end.”;
Just copy and paste this code if you still don’t understand
// 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.”;