Literal Quotes in Strings

I don’t know what is wrong with my code please help.

Your code so far


var myStr ="I am a\"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/84.0.4147.135 Safari/537.36.

Challenge: Escaping Literal Quotes in Strings

Link to the challenge:

You’re missing 2 spaces in the statement.

Change this,

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

to

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

It is still not making a difference check the code

It does work. I tried it myself.

Thank you very much I got it

1 Like

Great buddy, I’m glad I could help :heart:

It is correct. I tried it
Refresh the page and try again.