Escape Sequences in Strings" I tried an tried"HELP!

Escape Sequences in Strings" I tried an tried"HELP!
0.0 0

#1

Tell us what’s happening:
4 right
2 wrong = 1) string case sensitivity: I tried “firstLine,secondLine,thirdLine” it come back wrong…
2) newline character between second & third: I tried so many ways but none where right…

Your code so far


var myStr = "FirstLine\n\t,SecondLine,ThridLine"; // Change this line


Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.87 Safari/537.36 OPR/54.0.2952.51.

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


#2

you have a spelling mistake “ThirdLine” not “ThridLine”
The requested output should be:

FirstLine
\SecondLine
ThirdLine

Also do you see the \ in front of the SecondLine? Your code doesn’t produce that slash yet.

And finally, there are no commas anywhere, so remove the commas you added.


#3

Couple of issues I see

  1. You have a typo - ThridLine is not the correct spelling

  2. There should be no commas in the final solution, because there are no commas shown in the text

  3. You are missing a \ character before SecondLine, but make sure you escape it properly so it will actually display.