This is what I got, I am going insane

I can not find what I did wrong, please help.

myStr = "FirstLine\n\t\\SecondLine\nThirdLine"; issue in detail here.

const myStr = "FirstLine

Your browser information:

User Agent is: Mozilla/5.0 (X11; CrOS x86_64 14268.67.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.111 Safari/537.36

Challenge: Escape Sequences in Strings

Link to the challenge:

you have two different pieces of code ib your post, which one is what you have in your editor?

myStr = "FirstLine\n\t\\SecondLine\nThirdLine";"FirstLine\n\t\\SecondLine\nThirdLine

I’ve edited your post for readability. When you enter a code block into a forum post, please precede it with a separate line of three backticks and follow it with a separate line of three backticks to make it easier to read.

You can also use the “preformatted text” tool in the editor (</>) to add backticks around text.

See this post to find the backtick on your keyboard.
Note: Backticks (`) are not single quotes (’).

HI @Suncoast01 !

Welcome to the forum!

Two issues:

You deleted the const declaration that was originally there in the beginning.

It looks like you wrote the same thing twice.
You wrote this twice

But it only needs to be there once.

Once you clean up those two things then the test will pass

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.