What's wrong with this code ?0

Tell us what’s happening:
Variable myStr should contain the string: I am a “double quoted” string inside “double quotes”.
instead what i got is :
“I am a “double quoted” string inside “double quotes””

Your code so far


const 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/96.0.4664.45 Safari/537.36

Challenge: Escaping Literal Quotes in Strings

Link to the challenge:

Hi @arbimannai35 !

You are missing the ending punctuation mark.

1 Like

Hi @arbimannai35 ,
As per the Challenge, the myStr variable should contain the string:
I am a "double quoted" string inside "double quotes".
You are missing the Punctuation at the end.

1 Like

@ShivangamSoni

I have removed the answer from your post. Please don’t just blurt out the answer. We are a teaching platform so we try to guide the people to the answer, especially with curriculum challenges.

Thank you for contributing, but please try to keep with the spirit of the platform.

@kevinSmith Thanks for correcting my mistake.

1 Like