Escape-sequences in Strings

Escape-sequences in Strings
0.0 0

#1

Tell us what’s happening:
Why “carriage return” is used here in place of “newline” . When “ThirdLine” text is in the third line , then we have to used the newline character . Then we have used carriage return here?

Your code so far

var myStr = 'FirstLine\n\\SecondLine\\\rThirdLine';


Your browser information:

Your Browser User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.181 Safari/537.36.

Link to the challenge: