Basic Java script "Concatenating Strings with the Plus Equals Operator"

I really don’t get it what i’m doing doing wrong, i’m pretty sure i’m following the instructions but i keep getting these error

myStr should have a single space character between the two strings.

myStr should have a value of the string This is the first sentence. This is the second sentence.

You should use the += operator to build myStr.

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

Please share the link to the challenge you’re working on.

You’ve got a typo error. You’re trying to concatenate to a variable named mystr, but does a variable with that name exist?

Ohhh /facepalm, i saw it now.

thanks for the answer mate

By the way, the console error was telling you the same thing just in a less human-friendly way:

ReferenceError: mystr is not defined

Take a mental note so that next time you see that error you know what it means!

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