Basic JavaScript - Escape Sequences in Strings

Tell us what’s happening:
Describe your issue in detail here.
Good day team.
I am totally dumbfounded as to how to properly place the \n and \t in the 3 strings provided . Kindly help me to make sense of the logic that is supposed to be applied here.
Your code so far
const myStr\n\t = “FirstLine\n”"\tSecondLine\n"
“ThirdLine”; // Change this line

const myStr\n\t = "FirstLine\n"\"\tSecondLine\n"\
"ThirdLine"; // Change this line

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36 OPR/95.0.0.0

Challenge: Basic JavaScript - Escape Sequences in Strings

Link to the challenge:

no need to change variable name here

additional qoutes inside the string also are not needed. You should have just one pair of quotes.

add this line under your current code
console.log(myStr)

and experiment with escape sequences; that way you’ll see in the console current result for myStr

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