Strugling here need help

Tell us what’s happening:

I need help here Im stuck, looking for help Im new , with this code
var myStr = “firstline\n\t\Secondline\nThirdline”
can anyone help plz

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.67 Safari/537.36 Edg/87.0.664.47.

Challenge: Escape Sequences in Strings

Link to the challenge:

hi @Passion-art
Welcome to the forum.
your string variable need not(look) be in the same way as the output. it should be single line and within the double quotes. it should contain\n-for line break
\t-for tab
\\-for backslash
\n for another line break.
study the code output combo given in the challenge.

Happy Coding.