Basic JavaScript - Escape Sequences in Strings

Good Evening, I believe I am just having a simple misunderstanding here but can someone please explain what I am doing incorrectly?

Your code so far

const myStr = \" "FirstLine
    \t SecondLine
\n ThirdLine"; // 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/ Safari/537.36

Challenge: Basic JavaScript - Escape Sequences in Strings

Link to the challenge:

okay so I figured it out but I am a bit confused why I am using a cancellation for backslash before secondline

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

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