I am Doing everything right but it still wont work

Tell us what’s happening:
Describe your issue in detail here.

Your code so far

const myStr = "I am a\"double quoted\" string inside \"double quotes\".";
console.log(myStr); // Change this line

shows me this error
Variable myStr should contain the string: I am a "double quoted" string inside "double quotes".
The code is working thouugh

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.5005.63 Safari/537.36

Challenge: Escaping Literal Quotes in Strings

Link to the challenge:

Look at your output:

I am a"double quoted" string inside "double quotes".

Compare it to the expected output:

I am a "double quoted" string inside "double quotes".

Are those exactly the same?

1 Like

Thankyou. This helped alot.