Instructions vague in "Escape Sequences in Strings"

I don’t believe the instructions are correct for the escape sequences portion. The instructions say to replicate these three lines:

FirstLine
\SecondLine
ThirdLine

I assumed this should be programmed as such:

var myStr = ‘FirstLine\n\SecondLine\\nThirdLine’;

However, the “correct” code is:

var myStr = ‘FirstLine\n\SecondLine\\rThirdLine’;

The instructions should specify the use of a carriage-return between the second and third line, since there’s no way to decipher that from the instructions without looking at the error portion after first-submit.

**Your browser information:**

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

**Link to the challenge:**
https://www.freecodecamp.org/challenges/escape-sequences-in-strings
1 Like

Here is the text with the escape sequences written out.

“FirstLine newline backslash SecondLine backslash carriage-return ThirdLine”

Hey @ChrisCavs!

I got stuck at that one too! If your’re still stuck, this HERE is the answer explained.

Hope it helps!

Best regards!

i stucked with it but finally i tried that and it works
var myStr = “FristLine\n”+"\SecndeLine" +"\rThirdLine";