HELP Escape Sequences in Strings!

HELP Escape Sequences in Strings!
0

#1

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:
https://learn.freecodecamp.org/javascript-algorithms-and-data-structures/basic-javascript/escape-sequences-in-strings


#2

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


#3

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


#4

one word “backslash”.

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


#5

where do I have that?


#6

Backslashes need also to be escaped (second line)


#7

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


#8

Did you finally pass this challenge?