Basic JavaScript - Escaping Literal Quotes in Strings

Tell us what’s happening:
Describe your issue in detail here.

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 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/ Safari/537.36

Challenge: Basic JavaScript - Escaping Literal Quotes in Strings

Link to the challenge:

Hi there and welcome to our community!

You have a small mistake inside your string - an extra space between two of the words. Remove the unnecessary space and your code will pass.

The keyword var is essentially obsolete now, so you shouldn’t use it. You should be using let or const instead. You’ll note that if you reset this challenge, the const keyword is used for this variable.

i watched his string and i mean it should not produce an syntax error. maybe a test error. idk the test.

Whats the error?

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