Basic JavaScript - Escape Sequences in Strings

Hello! Can’t complete the challenge because " myStr should only contain characters shown in the instructions". What’s wrong here?

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; rv:109.0) Gecko/20100101 Firefox/110.0

Challenge: Basic JavaScript - Escape Sequences in Strings

Link to the challenge:

Why do you start your string with \n?

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