Doesn't matching test case

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

what is wrong in this code?
I gave the spaces also but it doesn’t work.

   **Your browser information:**

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

Challenge: Escaping Literal Quotes in Strings

Link to the challenge:

You have a whitespace at the beginning and end of your string.

hi there,

Your string expression has two errors:

  1. you need to remove the spaces you made at the beginning and end of the string.
  2. you need to remove any ‘extra space’ you made in between substrings; all that is needed is a ‘single space’ to separate subsrtings.

happy coding!

Thank You so much josemari.mercader64.

1 Like

Thank you gaac510…it works!!

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.