Basic JavaScript - Escape Sequences in Strings

The result shows that " myStr should only contain characters shown in the instructions"

Do I type any thing wrong? I thouth I follow the instrution.
Thank for help.

Your code so far

const myStr = "\nFirstLine\n\t\\SecondLine\nThirdLine"; // Change this line

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36

Challenge: Basic JavaScript - Escape Sequences in Strings

Link to the challenge:

Hello

You dont the \n at the beginning

1 Like

You don’t need a newline at the beginning of the string.

2 Likes

answered at the same time :slight_smile:

Thank for helping. I love community.

1 Like

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