Basic JavaScript - Escape Sequences in Strings

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

Link to the challenge:

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 are the instructions! I forgot to add them!

Figured it out!! I added something extra that was not needed.

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.