Basic JavaScript - Escape Sequences in Strings

Tell us what’s happening:
Describe your issue in detail here.
Hello guys, below is an attached issue of the challenge I’m currently facing, kindly help.

Your code so far

const myStr = "FirstLine\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/113.0.0.0 Safari/537.36

Challenge: Basic JavaScript - Escape Sequences in Strings

Link to the challenge:

const myStr = “FirstLine\n\t\SecondLine\nThirdLine”; // Change this line

You are almost correct. If you look at the challenge description though, you’ll see that you also need to escape the backslash character.

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