Escape Sequences in Strings, can't get a new line

Escape Sequences in Strings, can't get a new line
0.0 0

#1

Tell us what’s happening:

It says I need a new line between SecondLine and ThirdLine. Not entirely sure what is wrong, I’ve tried “SecondLine\n” as well as “\nThirdLine” but it didn’t work.

Your code so far


var myStr = '"FirstLine\n\t"\\"SecondLine"\n"ThirdLine"'; // Change this line


Your browser information:

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

Link to the challenge:
https://learn.freecodecamp.org/javascript-algorithms-and-data-structures/basic-javascript/escape-sequences-in-strings


#2

The instructions say to write:

“FirstLine newline tab backslash SecondLine newline ThirdLine”

so in other words:
var myStr = ‘“FirstLine\n\t\SecondLine\nThirdLine”’;

hope this helps.