I need assistance for Escape Sequences in Strings

I need assistance for Escape Sequences in Strings
0

#1

Tell us what’s happening:

Your code so far

var myStr="FirstLine\n\SecondLine\Thirdline\r";


Your browser information:

Your Browser User Agent is: Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3112.113 Safari/537.36.

Link to the challenge:


#2

If you were to display your myStr, it would look like:

FirstLine
SecondLineThirdline

You have to use \\ if you want to represent a single \

The instructions said to put a carriage return after \Second, but you did not. For some reason, you put a carriage return after Thirdline. Also, make sure to look at the exact spelling of the third line. You need to capitalize one of the letters.


#3

thanks a lot buddy.i sorted that one