Basic JavaScript - Escaping Literal Quotes in Strings

Tell us what’s happening:

Describe your issue in detail here.
This code getting wrong in running process.
please cleary it.

Your code so far

var myStr = "I am a,\"double quoted\"string inside\"double quotes\"."; // Change this line
console.log(myStr)

Your browser information:

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

Challenge Information:

Basic JavaScript - Escaping Literal Quotes in Strings

1 Like

Hey @karthii
You have added a comma that is not in the original text as highlighted below.

Remove the comma next to the a and try to run your code.
Kindly note that the text in the instructions need to match the one you add to your code for the tests to pass

Happy coding

3 Likes

Hello @karthii!

Ensure your text should includes the original spacing.

Does this help?
Keep up the good progress!

Happy Coding! :slightly_smiling_face:

2 Likes

Hi,
Remove the comma and add spaces and then run the code its working.

1 Like

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