Escape key backslash problem

Tell us what’s happening:
my console wont see my console it turns red when i use it can some one tell me whats going on.

Your code so far

var myStr=Firstline/n/t/Secondline
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/86.0.4240.75 Safari/537.36 Edg/86.0.622.38.

Challenge: Escape Sequences in Strings

Link to the challenge:

You have to wrap the text inside quotations marks.

var myStr = "your-text-here"

Also, to escape special character you should use backslash, instead of slash.

var myStr = "\nNewLine"
1 Like

i dont understand \n is what it says \

In your code you’re using are using / (slash)

var myStr=Firstline/n/t/Secondline

But you should be using \ (backslash). Also your text should be inside quotes ""

the problem was a lower case l for Line thanku for ur help.