Basic JavaScript - Concatenating Strings with the Plus Equals Operator

I don’t know what I did wrong. Please help me

My 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 (iPhone; CPU iPhone OS 15_0_2 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.0 Mobile/15E148 Safari/604.1

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

Link to the challenge:

This code looks correct - I have just tested this on my browser and it worked. Have you tried refreshing the page?

When I copy and paste your code it passes the challenge. There are a few steps you can try.

  1. Try restarting and refreshing the challenge to see if it will pass
  2. make sure you dont have any extensions running. Things like ad blocker, and dark mode can cause the challenge to fail.
  3. If none of the above work, then try submitting in the challenge in a different browser

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