Basic JavaScrip: Escape Sequences in Strings

Tell us what’s happening:

var myStr = “FirstLine\n\t\SecondLine\nthirdLine”

I already did it as it was suggested but for some reason is no working, let me know what’s missing?

Your code so far


var myStr = "FirstLine
\t\\SecondLine
thirdLine"

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.141 Safari/537.36.

Challenge: Escape Sequences in Strings

Link to the challenge:

Hi hightechworld,

There are two things: The line breaks aren’t allowed in strings. You have to replace them with another code from the table. The second thing is just a typo in one of the “lines” :wink:

it needs to match exactly… there is a small difference here

capital T? for ThirdLine

what does it say if you make that change?