Escaping Literal Quotes in Strings , dont know what went wrong

Tell us what’s happening:

Your code so far


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


Your browser information:

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

Link to the challenge:
https://learn.freecodecamp.org/javascript-algorithms-and-data-structures/basic-javascript/escaping-literal-quotes-in-strings/

You have an extra space in the end after period and have a typo. It should be ‘quotes’.

Hi shim
even tried in that way also but its not working

Can you paste your new code?

var myStr = “I am a “double quoted” string inside “double qoutes”.”;

formatted code. It’s missing backslashes.

sorry can you please help me on this , where i have to correct

i tried to add the backslashes it is not enabling

Select your code and hit pre-formatted icon in your editor.

1 Like