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

Tell us what’s happening:

I can not get the right code for this please I try different method please someone should help me.

Your code so far


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

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

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

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

//var myStr= "I am a /"double quoted/" string inside "double quotes".;

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

Your browser information:

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

Challenge: Escaping Literal Quotes in Strings

Link to the challenge:

Only use backslash to escape the double quotes \.
And you did get it on the third answer but you commented it out:

var myStr = "I am a \"double quoted\" string inside \"double quotes\".";
1 Like

Please it actually not working, I have been trying this for three days now I can not get pass it. i have tried everything I can, No result

Just copy and paste what I put up there. That was the answer.

THanks for you kind help mate I am so happy for this

Please I would love to add you to whatsapp if you are available. I hope my request is granted thanks so much. i hope to also learn greatly from you.