Escaping string laterals in javascript

Tell us what’s happening:

can someone tell me what is wrong with this code

Your code so far


var myStr = "I am a \"double quoted\" string inside\"double quotes\"";

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.106 Safari/537.36.

Challenge: Escaping Literal Quotes in Strings

Link to the challenge:

I think you forgot the period at the end.

var myStr = "I am a \"double quoted\" string inside \"double quotes\"."; // Change this line

^That code just passed for me. Check for differences.

Hi,
Tried it in my console and it works. I think your code is right but the tests have been constructed in such a way that your code doesn’t pass. So, the code is right, the test is problematic. In my humble opinion.
Greets,
Karin

Hello there,

You need to watch for small typos:

inside\"double

Have a look at what is shown in the console, for more of a hint.

Hope this helps