Tell us what’s happening:
I have all the other test completed but this one :" myStr should only contain characters shown in the instructions"
Which I believe that all the characters I have in there are correct. I have tried resetting the lesson but that doesn’t work either.
Any advice would be amazing! Your code so far
const myStr = "\nFirstLine\n\t\\SecondLine\nThirdLine"; // 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/114.0.0.0 Safari/537.36
Challenge: Basic JavaScript - Escape Sequences in Strings
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.