Escaping Literal Quotes in Strings2021

This is the Variable and I am assigning the below text in it. But not getting the required Output.

PROBLEM-----> var myStr = "I am a \"double qouted\" string inside \"double qoutes\".";

MY OUTPUT-----> myStr = "I am a "double qouted" string inside "double qoutes"."

REQUIRED OUTPUT-----> myStr = "I am a "double qouted" string inside "double qoutes".

My question is, how to get the desired output?

this is not the required output, check carefully, there is a couple of typos inside

Hi ilenia Sorry, this was the required output- I am a “double quoted” string inside “double quotes”.

yeah, there is a difference, if you fix that typo you pass the challenge

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