Escape Sequences in Strings - Answer not working

Tell us what’s happening:

Your code so far
var myStr=“FirstLine\n\SecondLine\\rThirdLine”;

I’ve also tried.
var myStr=“FirstLine\n\\SecondLine\\\rThirdLine”;

Your browser information:

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

Link to the challenge:

Remember, you have to use \\ to represent an actual \ (like your second try) and make sure you are using straight double quotes and not curly double quotes.

1 Like