Can't pass the test, HELP!

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

Your code so far

const myStr = 'I am a "double quoted" sting 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/98.0.4758.82 Safari/537.36

Challenge: Escaping Literal Quotes in Strings

Link to the challenge:

You missed the instruction:

Use backslashes…

You also misspelled “string” and are missing a quote.

Now I did figure it out, if anyone is having a hard time with this one the answer is just
const myStr= “I am a “double quoted” string inside “double quotes”.”;
you just have to be careful with the spacings and spellings.:smiley:

Thank you, I see my mistakes now.

Yeah, it confuses people at first - especially if you’re not used to coding and escape characters - that’s why there is a lesson.

1 Like

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