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

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

#1

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:
https://learn.freecodecamp.org/javascript-algorithms-and-data-structures/basic-javascript/escape-sequences-in-strings/


#2

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


#3

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

Still not Working :confused:


#4

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

Why? Whats wrong with it? :confused:


#5

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:


#6

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


#7


#8

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


#9

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

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


#10


#11

Dudeeeeeeeeeeeee!
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:


#12

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


#13

And what did you do to make 'em run?


#14

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


#15

Will try restarting my net and pc lol


#16

ok good luck lol :grinning:


#17

is it working ??:no_mouth::face_with_raised_eyebrow:


#18

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


#19

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


#20

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