Quotes are not the only characters that can be escaped inside a string. Here is a table of common escape sequences:
Note that the backslash itself must be escaped in order to display as a backslash.
The answer is in the sentence it self. ( Backslash the backslash to show the backslash )
So you would need to show a backslash
Here is the text with the escape sequences written out.
FirstLine newline backslash SecondLine backslash carriage-return ThirdLine
var myStr= “Firstline \n \ Secondline \ \r Thirdline” ;