I write correct code but output is not just am I expected

Tell us what’s happening:


i think its not working plz answer
me plz

Your code so far


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

Your browser information:

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

Challenge: Escaping Literal Quotes in Strings

Link to the challenge:

Hmm, that isn’t quite right.

1 Like

You are using escape character here properly, you just misspelled the word “quoted”, it should be “quotes”. It’s probably why your code is not passing.

2 Likes

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

its work on vs code but not work in the course

What do tme tests say now that you have made this change?

Please use words instead of pictures. Pictures are hard to read.

// running tests
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"."

You added an extra space here. You need to have zero typos for the tests to pass.

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