Tell us what’s happening:
I am attempting to concatenate two strings with the += operator and continue to get errors, but I know I am following the instructions correctly.
This is what it looks like:
var myStr = "This is the first sentence. ";
myStr += “This is the second sentence.”;
it keeps telling me I should use the += operator to build myStr. I see other people have had this issue. Why has this not been resolved?
Your code so far
// Only change code below this line var myStr="This is the first sentence. "; myStr += "This is the second sentence.";
Your browser information:
User Agent is:
Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.149 Safari/537.36.
Challenge: Concatenating Strings with the Plus Equals Operator
Link to the challenge: