Escape Sequences in Strings Issue

Escape Sequences in Strings Issue
0

#1

Tell us what’s happening:
myStr should not contain any spaces
Passed
myStr should contain the strings FirstLine, SecondLine and ThirdLine (remember case sensitivity)
Passed
FirstLine should be followed by the newline character \n
myStr should contain a tab character \t which follows a newline character
Passed
SecondLine should be preceded by the backslash character \
Passed
There should be a newline character between SecondLine and ThirdLine

Your code so far


var myStr=\t\n"FirstLine\n\\\SecondLine\nThirdLine";

Your browser information:

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

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


#2

Do you have a question?


#3

I figured it out :grinning: