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/

1 Like

#2

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

1 Like

#3

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

Still not Working :confused:

0 Likes

#4

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

Why? Whats wrong with it? :confused:

0 Likes

#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:

1 Like

#6

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

0 Likes

#7

0 Likes

#8

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

0 Likes

#9

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

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

0 Likes

#10

1 Like

#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:

0 Likes

#12

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

1 Like

#13

And what did you do to make 'em run?

0 Likes

#14

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

1 Like

#15

Will try restarting my net and pc lol

1 Like

#16

ok good luck lol :grinning:

1 Like

#17

is it working ??:no_mouth::face_with_raised_eyebrow:

1 Like

#18

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

0 Likes

#19

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

1 Like

#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

2 Likes