Escaping Literal Quotes in a String

Tell us what’s happening:

i need help with escaping literal qoutes in this string

Your code so far

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

Your browser information:

Your Browser User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:58.0) Gecko/20100101 Firefox/58.0.

Link to the challenge:

You have a typo. Carefully check your spelling.

can you please point it out to me

You have two misspelled words. Look at each word.

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

it’s still not working

What does the failing test say?

Variable myStr should contain the string: I am a “double quoted” string inside “double quotes”.

You have an extra character at the end of myStr that should not be there.

1 Like

it worked. thank you

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

what is wrong with this statement?