Escape Sequences in Strings need help please

Tell us what’s happening:
just trying to figure out what im doing wrong here

Your code so far

var myStr;"FirstLine\n\t\\SecondLine\nThirdLine";

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36.

Link to the challenge:

I’ve edited your post for readability. When you enter a code block into a forum post, please precede it with a separate line of three backticks and follow it with a separate line of three backticks to make easier to read.

See this post to find the backtick on your keyboard. The “preformatted text” tool in the editor (</>) will also add backticks around text.

Note: Backticks are not single quotes.


You have a semicolon in the middle of your statement.

i thought the semicolon after var myStr; is supposed to stay there if that’s the semicolon you were referring to. i tried deleting the semicolon after var myStr; and still didnt work. other than then that i cant figure this one out

If you want to assign a value to a variable, how do you do that?