Basic JavaScript - Escaping Literal Quotes in Strings

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

Your code so far

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

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/115.0.0.0 Safari/537.36

Challenge: Basic JavaScript - Escaping Literal Quotes in Strings

Link to the challenge:

Welcome to our community!

Where is the period at the end of the sentence?

i don’t know how to pass this one i’ve done any thing in the tutorial but it doesn’t show

This is your starting code, posted here. Add the period between the last two double quotes, which are positioned at the end of the sentence:

...quotes\"";

there will show another quotetion mark that become before I

This is your code tested in the challenge:

Read the comment in the console below about why the code doesn’t pass.
As you can see a dot is obligatory here. It is part of the required string.

Post the code after adding that dot.

thanks finally i did it

1 Like

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