Please let me know the issue

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

Your code so far


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

Your browser information:

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

Challenge: Escaping Literal Quotes in Strings

Link to the challenge:

Hi @ankitaFCC !
There are several mistakes in the code. This is the result needed

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

There are no single quotes in the code and result.

And also what @adeelch30ty said.

You just have to rearrange the string, like at the end quotation mark is before the period and remove the space before the period.

1 Like

This is the string but the challenge is to escape double-quote characters using backslash.

thanks
var myStr = “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.