Basic JavaScript - Concatenating Strings with the Plus Equals Operator

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.";
console.log(myStr)

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36

Challenge: Basic JavaScript - Concatenating Strings with the Plus Equals Operator

Link to the challenge:

Hi there and welcome to our community!

It’s really helpful if you can learn to describe problems in your own words. It’s not only a vital skill in learning to code but also, the more you say, the more we can help!

Your code is not passing because you need to account for spaces when you are concatenating strings. You already have a console.log in your code, so you can see what happens when you concatenate without spaces.

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