Escape Sequences in Strings - Run Test

Escape Sequences in Strings - Run Test
0

#1

Tell us what’s happening:
It won’t let me Run the Test. Every time I press it, it does nothing.

Your code so far


var myStr= \t \n FirstLine \n \t \\ SecondLine \n ThirdLine; // Change this line


Your browser information:

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

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


#2

Some syntax errors will prevent the tests from completing properly. Your code is not valid because what you are attempting to assign to myStr is not a string (or other valid type).


#3

Strings must be enclosed in either single (’) or double (") quotes. Special characters inside those strings have to be “escaped” to be written out, e.g., \t for tab, \n for newline, etc…

Also remember that the spacing matters.


#4

Thank you so much for your help


#5

Thank you for your help