Tell us what’s happening:
i have facing problem to complete this task. So, I need some help
Your code so far
var myStr ="FirstLine\n\t\\",
"\SecondLine\n"
"ThirdLine" ; // Change this line
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/76.0.3809.132 Safari/537.36
.
Link to the challenge:
https://learn.freecodecamp.org/javascript-algorithms-and-data-structures/basic-javascript/escape-sequences-in-strings
Hi,
It would be easier to pass the challange if you type the value of myStr
into a one line. If you do it, you will probably see what are you doing wrong:
var myStr ="FirstLine\n\t\\","\SecondLine\n""ThirdLine" ; // Change this line
Additionally, the challenge has a very cool tip that is easy to follow:
"FirstLine newline tab backslash SecondLine newline ThirdLine"
So to pass the challenge you have to assign the value of "FirstLine newline tab backslash SecondLine newline ThirdLine"
to myStr
but of course you have to replace the newline
word with \n
, tab
word with \t
and so on.
Thank you so much for helping me