Concatenating String using +=

So Ive entered the below code, that Im highly not sure whether it’ss correct. What could be the problem?

let myStr = "This is the first sentance. ";
myStr += "This is the second sentance.";

Your browser information:

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

Challenge: Concatenating Strings with the Plus Equals Operator

Link to the challenge:

small typo, the word is sentence

1 Like