Escaping Literal Quotes in Strings by tafadzwa chikuvire

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

Your code so far


var myStr = I am a "double quoted" string inside "double quotes".""; // Change this line

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.164 Safari/537.36

Challenge: Escaping Literal Quotes in Strings

Link to the challenge:

Please go back and read the description on the left, including the examples.

If you still have issues, go ahead and DESCRIBE your issue. Communicating your code, including issues is a vital part of programming.

2 Likes
   **Escaping Literal Quotes in Strings**

Use backslashes to assign a string to the myStr variable so that if you were to print it to the console, you would see:

Mod Edit: SOLUTION REDACTED

It is great that you solved the challenge, but instead of posting your full working solution, it is best to stay focused on answering the original poster’s question(s) and help guide them with hints and suggestions to solve their own issues with the challenge.

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