This does not make any sense

Tell us what’s happening:

What am I doing wrong, I think it is a bug but for some reason when I test my code it does not work. Please help!!. This was about esacping literal quotes in strings.

Your code so far
var myStr = "I am “double quoted"string inside “double quotes””;

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

Your browser information:

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

Challenge: Escaping Literal Quotes in Strings

Link to the challenge:

Hello and welcome to the freeCodeCamp community~!

You are very very close.

This is what your code is returning. The tests expect:
"I am a "double quoted" string inside "double quotes"."

Do you see the differences? :slightly_smiling_face:

1 Like