Escape Sequences in Strings--why this doesn't work?

Tell us what’s happening:

Your code so far

myStr = "FirstLine\n\\SecondLine\\\rThirdLine";

var myStr; // Change this line

myStr = "FirstLine\n\\SecondLine\\\rThirdLine";

Your browser information:

User Agent is: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36.

Link to the challenge:
https://learn.freecodecamp.org/javascript-algorithms-and-data-structures/basic-javascript/escape-sequences-in-strings/

I’ve edited your post for readability. When you enter a code block into a forum post, please precede it with a separate line of three backticks and follow it with a separate line of three backticks to make easier to read.

See this post to find the backtick on your keyboard. The “preformatted text” tool in the editor (</>) will also add backticks around text.

Note: Backticks are not single quotes.

markdown_Forums

In the lesson you can see a sample of what you’ve typed in and you’ll see it doesn’t match the output they’ve asked for to solve the lesson.

As a hint, right above the “Run the Tests” button they’ve written out what escape sequences you need to put in.

Hint; newline and carriage return are not the same thing.