Basic JavaScript - Escaping Literal Quotes in Strings

I am writing as per the criteria but i didn’t get it where i am going wrong.

const myStr = "I am a \"double quoted\" string inside \"double quotes\"."; // Change this line; 
// Change this line
console.log("myStr1 = ",myStr);

Your browser information:

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

Challenge: Basic JavaScript - Escaping Literal Quotes in Strings

Link to the challenge:

The console.log statement is there to help you debug.

What do you get from it right now?

Yeah, it’s confusing. Read the instructions closely:

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

It is counting the double quotes in your code. You have some extras in you console.log, it’s throwing off the test.

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