Basic JavaScript - Escaping Literal Quotes in Strings

Tell us what’s happening:
Describe your issue in detail here.
i did the solution like this but its still gives me error i don’t understand what happen

Your code so far
const myStr =“I am a "double qouted" string inside "double qoutes".”


const myStr ="alan said,\"peter is learnning\"."
console.log(myStr) // Change this line

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/118.0

Challenge: Basic JavaScript - Escaping Literal Quotes in Strings

Link to the challenge:

the challenge is for you to escape; “I am a “double quoted” string inside “double quotes”.” all you need to do is to escape

“double quoted”


“double quotes”

in order to for the console to return them in a quotes since it’s a string

1 Like

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