I can not understand why this code is failing the run test?

I need my console to look like this "
I am a “double quoted” string inside “double quotes”.

But it looks like this : myStr = “I am a “double quoted” string inside “doubled quotes”.” I need to get rid of the last " so it just has a full stop but I can’t understand what is wrong with the code ?

Many thanks in advance.

Your code so far

const myStr = "I am a \"double quoted\" string inside \"doubled quotes\".";

Your browser information:

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

Challenge: Escaping Literal Quotes in Strings

Link to the challenge:

HI @Nc29 !

Welcome to the forum!

Reread this line here to find your mistake

Hope that helps!

1 Like

Still no joy any help appreciated I don’t want to move on until I’ve passed it.

What did you change? What is your updated code?

const myStr = "I am a \"doubled quoted\" string inside \"double quotes.";

I have it the very same as the example the first time, so can’t understand what is wrong ?
Is it not correct and maybe a bug with the programme?

You moved your typo.

1 Like

Yes I know this one is incorrect, what was my first typo ?

Nowhere should you have ‘doubled’ in the string. You fixed it where @jwilkins.oboe pointed out but then moved the typo to another place.

1 Like

Yeah I would just go back to your first code you posted and remove that extra letter.

You don’t need to change anything else.

Just delete one letter :slight_smile:


I feel very silly, thank you both for your help :slight_smile:

1 Like

Feeling silly about a bug is totally normal! We’ve all been there.

I was so obsessed with the code I missed it!

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