Can someone please tell me how this is wrong. I followed the instructions and even watched the video and did it the same way and i am getting an error. in the video, the demonstration doesn’t even use “;” at the end of the strings. Tell us what’s happening:
Describe your issue in detail here.
Your code so far
var myStr = "This the first sentence. ";
myStr += "This is the second sentence.";
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.5005.115 Safari/537.36
Challenge: Concatenating Strings with the Plus Equals Operator
i think the mistake your doing is giving two space in the first line of the code, make the space is just one. i just passed the challenge with the code i pasted , you can copy and paste and note the error
Thank you, I did one space and it gave me an error when i first started. I didnt know i needed a space in the second string which i don’t remember the notes talking about