Escape Sequences in Strings - Stuck at this for hours :/

Escape Sequences in Strings - Stuck at this for hours :/


What is wrong with my Code?

var myStr “FirstLine\n\t\SecondLine\nThirdLine”; // Change this line

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:61.0) Gecko/20100101 Firefox/61.0.

Link to the challenge:


write mystr=…and you continue your code as well
you havn’t wrot "="sign


var myStr= “FirstLine\n\t\SecondLine\nThirdLine”; // Change this line

Still not Working :confused:


var myStr= “FirstLine\n\t\SecondLine\nThirdLine”; // Change this line

Why? Whats wrong with it? :confused:


befor the backslash in the second you have to add another backslash
myStr= “FirstLine\n\t\SecondLine\nThirdLine”;
this will resolve it i think :slight_smile:


Actually its double backslash only. its not showing over here.



for me it is working whene i’am writing it like these :neutral_face:


ffs. What the hell am i suppose to do then? -,-

I tried it on other browsers also, still the same. :confused:



I’ve been at this code for the past 2 hours, checked every forum, github etc etc.
And you are telling my that my computer, net sucks?
Throwing this shit out of my window. :smiley:


that arrive to me too i have 3 test that i havn’t passed because of thisprobleme


And what did you do to make 'em run?


sometimes it is my computer like you have sad but sometimes it is fcc


Will try restarting my net and pc lol


ok good luck lol :grinning:


is it working ??:no_mouth::face_with_raised_eyebrow:


Heck No! -,-
Where should i complain about this?


i dont know but i think that you have to send a message to quincy larson the owner of fcc


Because " is not , they are different characters.

As you copied and pasted some text maybe, you got the open-close double-quote char instead of ASCII double-quote.

Fix is easy, remove those “ in your code(both at start and at the end) and type it by your keyboard (shift + ') and try again.

Check the screenshot @Juba-codeur shared, the string starts with ASCII double quote " , but not yours.

following is wrong (please check the open and close double-quote
var myStr= “FirstLine\n\t\SecondLine\nThirdLine”; // Change this line
it should be
var myStr= "FirstLine\n\t\SecondLine\nThirdLine"; // Change this line