Basic JavaScript - Escaping Literal Quotes in Strings

I can’t figure out what I’m doing wrong. I have done everything I could think of but I’m just lost. Can someone explain why I’m getting these answers wrong and how to resolve similar ones in the future, please?

var myStr = "\"I am a \"double quoted\" string inside \"double quotes\"";
consol.log(myStr)

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

Challenge: Basic JavaScript - Escaping Literal Quotes in Strings

Link to the challenge:

Hello!

There is no need for the " \ at the beginning of the sentence.
You may need to add a . between the final “”.
And remove the consol.log(myStr)

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