Issue in running the js code

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

Your code so far
i write code as asked take also refrence from the hint but still there is issue with running my code

var myStr = "I am a \"double quoted\" string inside \"double quotes\".";
var otherStr = "I am a \"single quoted\" string inside \"single quotes\".";
var noEscapeSingle = "There is no need to 'escape' the single quotes.";
var noEscapeDouble = 'There is no need to "escape" the double 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:

I’d try removing all this extra stuff.

There is no need to write four different variables. Just keep the 1st var and BOOOM see the magic.

Hope this will help. :smiley:

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