HELP Escape Sequences in Strings!

Tell us what’s happening:

So I looked up other posts in for this project and none of them helped.
so… I really do not understand how to format the code.

  1. it is all on one line?
  2. what is the code and how do I format it correctly?

Your code so far

var myStr=“FirstLine\n\tSecondLine\nThirdLine”;

Your browser information:

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

Link to the challenge:

Pay attention to which test failed. That should give you an idea of what’s missing.


ok so this is what my screen looks like.
I have tried everything and still cannot figure out what I have wrong.

one word “backslash”.

Read the description more carefully and examine the requirements with a clear mindset.

where do I have that?

Backslashes need also to be escaped (second line)

ok I got it fixed thanks
but I still do not know what you are saying

Did you finally pass this challenge?

1 Like