Https://www.freecodecamp.org/learn/javascript-algorithms-and-data-structures/basic-javascript/escape-sequences-in-strings

I don’t know where I am wrong. I even copy pasted the solution from the video still not getting accepted

Your code so far


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

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.132 Safari/537.36.

Challenge: Escape Sequences in Strings

Link to the challenge:

Almost there, you need a few adjustments

I would say first most important thing:
You are not using the assignment operator =. That’s important as you need to give a value to the variable myStr

also, do not use a line break, you need to use the special character for that. In your code the string should be only one line.

1 Like

Thank you, apparently I am dumb.