Tell us what’s happening:
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
Run the TestsReset All CodeGet a hintAsk for help
Your code so far
var myStr = "FirstLine"\n\t\\"SecondLine"\n"ThirdLine";
var myStr; // Change this line
var myStr = "FirstLine"\n\t\\"SecondLine"\n"ThirdLine";
Your browser information:
User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/12.1.1 Safari/605.1.15
.
Link to the challenge:
https://learn.freecodecamp.org/javascript-algorithms-and-data-structures/basic-javascript/escape-sequences-in-strings