Javascript quotes within a strings

You are super close.

You added the correct space I was referring to before string but did you add an extra space at the end?

The ending for your last post was fine.

The issue is the extra space after the period.

Your code
"I am a \"double quoted\" string inside \"double quotes\". ";

1 Like

wow thanks I have passed the test but why is it escaping the the closing quotes even in the solution I believe the closing quote should not be seen in the results.

If you run console.log on myStr then you won’t see the quotes from the string.

console.log(myStr)

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

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