Issue 1:
Issue Description

I think the "Escape Sequences in Strings" lesson has a bug.

I am going through the Javascript course on FreeCodeCamp.com and am stuck at this challenge, 'Escape Sequences in Strings':

Assign the following three lines of text into the single variable myStr using escape sequences.

FirstLine
\SecondLine\
ThirdLine

You will need to use escape sequences to insert special characters correctly. You will also need to follow the spacing as it looks above, with no spaces between escape sequences or words.

Here is the text with the escape sequences written out.

"FirstLine newline backslash SecondLine backslash carriage-return ThirdLine"

Here is how I'm writing the code example:

js var myStr = "Firstline\n\\Secondline\\\rThirdline";

In the lesson, the check requires there to be only one \n. The \r doesn't seem to function properly. I have tried different work arounds and searching hasn't provided any direction. I have tried using 'console' in the developer window of the browser and it appears \n is working but the \r is not.

According to the rules of the instruction,

js var myStr = "Fristline\n\\Secondline\\\r\nThirdline";

is not valid by the lesson standards.

Is the carriage-return not working?

Am I misunderstanding the lesson?

According to the book 'Javascript Bible' by Danny Goodman, chapter 15 'The String Objects', section 'Special Inline Characters' states:

"In most cases, browsers ignore carriage returns or render them like spaces."

https://books.google.com/books?id=WMr2NEG88icC&pg=PT262&lpg=PT262&dq=javascript+carriage+return&source=bl&ots=dWFLqN0rlO&sig=eZGo_74AHZq_4e2pxmtiqXz6l9s&hl=en&sa=X&ved=0ahUKEwivlMaEqu_QAhWBOSYKHSviBM44HhDoAQgjMAI#v=onepage&q=javascript%20carriage%20return&f=false

To highlight this issue I put similar isolating code found in the lesson inside console.log(); in the Developer window of the browser. I received some interesting results.

This is what occurs in the browser as displayed in console:

js console.log("escape characters use a \\\nbackslash. But a carrige-return \rdoes this!");

escape characters use a \

backslash. But a carrige-return does this!

This is the same code copied to clipboard from the browsers console display and pasted into an editor:

js console.log("escape characters use a \\\nbackslash. But a carrige-return \rdoes this!");

escape characters use a \

backslash. But a carrige-return

does this!

Browser display:

js var myStr = "Firstline\n\\Secondline\\\rThirdline"; console.log(myStr);

Firstline

\Secondline\Thirdline

Clipboard paste result:

js var myStr = "Firstline\n\\Secondline\\\rThirdline"; console.log(myStr);

Firstline

\Secondline\

Thirdline

Browser Information

Firefox Version	49.0.2

Build ID	20161019084923

Update Channel	release

User Agent	Mozilla/5.0 (Windows NT 6.2; Win64; x64; rv:49.0) Gecko/20100101 Firefox/49.0

OS	Windows_NT 6.2

Browser Name, Version: Firefox 49

Operating System: Windows 8

Issue 2:
Challenge Escape Sequences in Strings has an issue.

User Agent is: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.116 Safari/537.36.

Please describe how to reproduce this issue, and include links to screenshots if possible.

My code:

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