<h4 dir="auto">Issue Description</h4>

<p dir="auto">I think the "Escape Sequences in Strings" lesson has a bug.</p>
<p dir="auto">I am going through the Javascript course on FreeCodeCamp.com and am stuck at this challenge, 'Escape Sequences in Strings':</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="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.

&quot;FirstLine newline backslash SecondLine backslash carriage-return ThirdLine&quot;"><pre class="notranslate"><code class="notranslate">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"
</code></pre></div>
<p dir="auto">Here is how I'm writing the code example:</p>
<p dir="auto"><code class="notranslate">js var myStr = "Firstline\n\\Secondline\\\rThirdline"; </code></p>
<p dir="auto">In the lesson, the check requires there to be only one <code class="notranslate"> \n</code>. The <code class="notranslate">\r</code> 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 <code class="notranslate">\n</code> is working but the <code class="notranslate">\r</code> is not.</p>
<p dir="auto">According to the rules of the instruction,</p>
<p dir="auto"><code class="notranslate">js var myStr = "Fristline\n\\Secondline\\\r\nThirdline"; </code></p>
<p dir="auto">is not valid by the lesson standards.</p>
<p dir="auto">Is the carriage-return not working?<br>
Am I misunderstanding the lesson?</p>
<p dir="auto">According to the book 'Javascript Bible' by Danny Goodman, chapter 15 'The String Objects', section 'Special Inline Characters' states:</p>
<p dir="auto">"In most cases, browsers ignore carriage returns or render them like spaces."</p>
<p dir="auto"><a href="https://books.google.com/books?id=WMr2NEG88icC&amp;pg=PT262&amp;lpg=PT262&amp;dq=javascript+carriage+return&amp;source=bl&amp;ots=dWFLqN0rlO&amp;sig=eZGo_74AHZq_4e2pxmtiqXz6l9s&amp;hl=en&amp;sa=X&amp;ved=0ahUKEwivlMaEqu_QAhWBOSYKHSviBM44HhDoAQgjMAI#v=onepage&amp;q=javascript%20carriage%20return&amp;f=false" rel="nofollow">https://books.google.com/books?id=WMr2NEG88icC&amp;pg=PT262&amp;lpg=PT262&amp;dq=javascript+carriage+return&amp;source=bl&amp;ots=dWFLqN0rlO&amp;sig=eZGo_74AHZq_4e2pxmtiqXz6l9s&amp;hl=en&amp;sa=X&amp;ved=0ahUKEwivlMaEqu_QAhWBOSYKHSviBM44HhDoAQgjMAI#v=onepage&amp;q=javascript%20carriage%20return&amp;f=false</a></p>
<p dir="auto">To highlight this issue I put similar isolating code found in the lesson inside <code class="notranslate">console.log();</code> in the Developer window of the browser. I received some interesting results.</p>
<p dir="auto">This is what occurs in the browser as displayed in console:</p>
<p dir="auto"><code class="notranslate">js console.log("escape characters use a \\\nbackslash. But a carrige-return \rdoes this!"); </code></p>
<p dir="auto">escape characters use a \<br>
backslash. But a carrige-return does this!</p>
<p dir="auto">This is the same code copied to clipboard from the browsers console display and pasted into an editor:</p>
<p dir="auto"><code class="notranslate">js console.log("escape characters use a \\\nbackslash. But a carrige-return \rdoes this!"); </code><br>
escape characters use a \<br>
backslash. But a carrige-return<br>
does this!</p>
<p dir="auto">Browser display:</p>
<p dir="auto"><code class="notranslate">js var myStr = "Firstline\n\\Secondline\\\rThirdline"; console.log(myStr); </code><br>
Firstline<br>
\Secondline\Thirdline</p>
<p dir="auto">Clipboard paste result:</p>
<p dir="auto"><code class="notranslate">js var myStr = "Firstline\n\\Secondline\\\rThirdline"; console.log(myStr); </code><br>
Firstline<br>
\Secondline\<br>
Thirdline</p>



<h4 dir="auto">Browser Information</h4>

<p dir="auto">Firefox Version 	49.0.2<br>
Build ID 	20161019084923<br>
Update Channel 	release<br>
User Agent 	Mozilla/5.0 (Windows NT 6.2; Win64; x64; rv:49.0) Gecko/20100101 Firefox/49.0<br>
OS 	Windows_NT 6.2</p>
<ul dir="auto">
<li>Browser Name, Version: Firefox 49</li>
<li>Operating System: Windows 8</li>
</ul>
<p dir="auto">Challenge <a href="https://www.freecodecamp.com/challenges/escape-sequences-in-strings#?solution=%0Avar%20myStr%3D%22FirstLine%5Cn%5C%5CSecondLine%5C%5C%5CrThirdLine%22%3B%20%2F%2F%20Change%20this%20line%0A%0A%0A" rel="nofollow">Escape Sequences in Strings</a> has an issue.<br>
User Agent is: <code class="notranslate">Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.116 Safari/537.36</code>.<br>
Please describe how to reproduce this issue, and include links to screenshots if possible.</p>
<p dir="auto">My code:</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="
var myStr=&quot;FirstLine\n\\SecondLine\\\rThirdLine&quot;; // Change this line


"><pre class="notranslate"><span class="pl-k">var</span> <span class="pl-s1">myStr</span><span class="pl-c1">=</span><span class="pl-s">"FirstLine\n\\SecondLine\\\rThirdLine"</span><span class="pl-kos">;</span> <span class="pl-c">// Change this line</span>

</pre></div>