Can someone help

input : I am a “double quoted”\ string inside “double quotes”.

this is the output : myStr = " I am a “double quoted” string inside “double quotes”."
how to remove the other quote. in output it is showing to quotes

Hi @ajzinx !

Welcome to the forum!

It would help to see your code.

The problem is that i think there is a glitch in the question.
Because even after writing the correct code it’s not showing successful.

Can we test out your code on our end?

There is really only one way to correctly do this challenge and I just tested it and it seems to work fine for me.

I’m just guessing here because you haven’t shown us what you are doing yet. You can’t use single quotes for the string, you must use double quotes everywhere. The output should not have double quotes at the very beginning and end of the string, only around the words double quoted and double quotes. The period at the end of the sentence should not be inside the double quotes.

I think I covered them all :slight_smile:

myStr = "I am a “double quoted”\ string inside “double quotes”.";

Look closely at the example in the instructions:

var sampleStr = "Alan said, \"Peter is learning JavaScript\".";

Are you escaping all of the double quotes like the example is?

1 Like

you are also using the wrong kind of quote, you need to use "", not “”