Why can't I pass the test : Escaping Literal Quotes in Strings

Tell us what’s happening:

Trying to solve the challenge but, whatever I try i keep falling

Your code so far


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

var myStr = 'I am a "double quoted" string inside "double quotes".'; //this also does not

Your browser information:

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

Challenge: Escaping Literal Quotes in Strings

Link to the challenge:

  1. You do not have double quotes around your string.
  2. You should double check the spacing around your escaped double quotes for the first string.
1 Like