contain the string

Tell us what’s happening:

Your code so far


var myStr = "i am a \"double quoted\" string inside \"double quoted\"."; // 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:

1 Like

Hi @surajkumar8406, welcome to the forum.

Be aware that many lessons will look for an exact match of the output; in your case you made the escaping well, but unfortunately the two strings don’t really match:

//required
I am a "double quoted" string inside "double quotes".

//your output
i am a "double quoted" string inside "double quoted".
  • i is not capitalized
  • quoted instead of quotes

Hope it helps :sparkles:

2 Likes