Escape Sequences in Strings - still not correct

Escape Sequences in Strings - still not correct
0

#1

Tell us what’s happening:

Your code so far

var myStr = " FirstLine\n\SecondLine\\rThirdLine "; // Change this line; // Change this line


Your browser information:

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

Link to the challenge:


#2

You’ve forgotten that to show the \ you need to escape it as well so for showing “\” use \\. Hope this will help.


#3

It had me stuck for a while too. It might have been the way… that I read the instructions. Remember the back slash is one of those characters that need to be escaped just like the line and carriage returns.

var myStr = " FirstLine\n_\SecondLine_\rThirdLine "; // Change this line; // Change this line