What am I doing wrong here?
Assign the following three lines of text into the single variable myStr
using escape sequences.
FirstLine
\SecondLine
ThirdLine
You will need to use escape sequences to insert special characters correctly. You will also need to follow the spacing as it looks above, with no spaces between escape sequences or words.
Here is the text with the escape sequences written out.
FirstLine newline
tab
backslash
SecondLine newline
ThirdLine
var myStr; "FirstLine\n\t\\SecondLine\nThirdLine";
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 6.2; rv:63.0) Gecko/20100101 Firefox/63.0
.
Link to the challenge:
https://learn.freecodecamp.org/javascript-algorithms-and-data-structures/basic-javascript/escape-sequences-in-strings