Need assistance in Escaping Literal Quotes in Strings

Challenge Name

Escaping Literal Quotes in Strings has an issue.

Issue Description

I think there is something wrong with this. I update the variable as below. Still it complains on the first test:

You should use two double quotes (") and four escaped double quotes (").

var myStr = “I am a “double quoted” string inside “double quotes”.”; // Change this line

Browser Information

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

Screenshot

Your Code


var myStr = "I am a \"double quoted\" string inside \"double quotes\"."; // Change this line



Did you try reloading the page?
Sometimes it gets stuck on the previous solution.

The first test is bad - it counts double quotes anywhere in the code panel even in comments

// an extra double quote " anywhere in this panel makes the first test fail
var myStr = "I am a \"double quoted\" string inside \"double quotes\"."; // Change this line

If there isn’t one already, please open a GitHub Issue.

I really don’t understand it fully. I reloaded the page yesterday, it did not work but today the same solution works.

Maybe it was because the browser cache needed cleaning too (if you restart your browser, its cache will get cleared).