Basic JavaScript - Escaping Literal Quotes in Strings

Tell us what’s happening:
Describe your issue in detail here.

Your code so far

const myStr = "I am a \"double qoutef\" string inside \"double qoute\"."; // Change this line

Your browser information:

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

Challenge: Basic JavaScript - Escaping Literal Quotes in Strings

Link to the challenge:

You’ve got some spelling mistakes in your string. Go through it very carefully to catch them all.

Welcome to the fun part of coding, finding your bugs :slightly_smiling_face:

Hello, When you are defining a string you must start and end with a single or double quote. What happens when you need a literal quote: " or ’ inside of your string? In JavaScript, you can escape a quote from considering it as an end of string quote by placing a backslash () in front of the quote. Thank you

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