Escaping literal quotes js

Tell us what’s happening:
its not working,cant pass

Your code so far

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


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


Your browser information:

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

Challenge: Escaping Literal Quotes in Strings

Link to the challenge:

Hello @jmnqv123.
Welcome to FCC.

You have a space where it shouldn’t be

The above should have been \"double quoted\" s

it outputs:

Variable myStr should contain the string: I am a "double quoted" string inside "double quotes".
// tests completed
// console output
myStr = "I am a "double quoted " string inside"double quotes"."
myStr = "I am a "double quoted " string inside"double quotes"."

there should be a space only at most on one side of the quote

could u post the answer

If you notice, in one point of the string you have space quote space, which is never present in the required string shown in description

Tell us what’s happening:

please fix im typing it right its not workng for 3 days

Your code so far


var myStr = "I am a \"double quoted\"string inside\"double quotes\".";
console.log(myStr)

Your browser information:

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

Challenge: Escaping Literal Quotes in Strings

Link to the challenge:

This is the correct answer in the console.

I am a “double quoted” string inside “double quotes”.

This is your answer in the console.
I am a “double quoted"string inside"double quotes”.

Can you see the difference?
Can you see the difference with spacing?

If you add one space before string and one space after inside then you will see it looks like the correct answer.

It’s not reading the period after closing statement

no, the issue is missing spaces in your string

I did it but it doesn’t work

what have you changed?