Escape Sequences in Strings 8/22/18

Escape Sequences in Strings 8/22/18
0.0 0

#1

Tell us what’s happening:
I can’t seem to get the code to run. I’m not sure what I’m doing wrong

Your code so far
var myStr; “FirstLine\n\t\SecondLine\nThirdLine”;


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


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.

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


#2

Remove the first semicolon, which terminates the statement too early.
You want the assignment operator in that place.


#3

Thank you, I didn’t even realize I’d switched it with the semi-colon