Escaping Literal Quotes in Stringss

Tell us what’s happening:

hie tried creating backslashes and going to the hint but not working

Your code so far

var myStr = I am a "double quoted" string inside "double quotes".; // 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/85.0.4183.102 Safari/537.36.

Challenge: Escaping Literal Quotes in Strings

Link to the challenge:

Welcome to the community!

When defining a string variable, the entire variable will need to have double-quotes around it (i.e. var myStr = "Bob"). The difficulty in this challenge is understanding how to put double-quotes inside a variable that is defined using double-quotes. That is where the escape character (the backslash) comes in handy.

Try looking at the var sampleStr in the challenge description again, and follow that example to help you out. Best of luck!