Concatenating Strings with + Operator

This is what is failing:
myStr should have a value of the string This is the start. This is the end.

My code (exact):
const myStr = "This is the start." + "This is the end.";

Concatenating Strings with Plus Operator

Please include the link to the challenge you are working on when you post a question.

String concatenation doesn’t automatically put spaces between the two strings for you. You need to put the space in manually.

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.