Basic JavaScript - Escaping Literal Quotes in Strings

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

Your code so far
i can’t get past this lesson but i have written the code correctly as per the video please help

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

Your browser information:

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

Challenge: Basic JavaScript - Escaping Literal Quotes in Strings

Link to the challenge:

Im getting:

i am a “double quoted” string inside “double qoutes”

from your console.log. But the test is asking for:

I am a “double quoted” string inside “double quotes”.

See the differences? Some of them might be hard to see, so toss a string on both sides of your myStr variable to help highlight them in your console.log.

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