Tell us what’s happening:
Describe your issue in detail here.
Your code so far
let myStr = " This is the first sentence.";
myStr += " This is the second sentence.";
Your browser information:
User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.5.2 Safari/605.1.15
Challenge: Basic JavaScript - Concatenating Strings with the Plus Equals Operator
Link to the challenge:
Hello!
It appears there are spaces at the beginning of the strings. This is not correct. There should be a space at the end of the first string to provide the necessary space between the two sentences.
I hope this helps you.
Happy coding!
2 Likes
agreed with this answer. Pay attention to spacing. For me, when first started, this took some time to get used to
2 Likes
system
Closed
January 21, 2024, 12:29pm
4
This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.