Basic JavaScript - Escaping Literal Quotes in Strings

Here badStr will throw an error.

In the goodStr above, you can use both quotes safely by using the backslash \ as an escape character.

Note: The backslash \ should not be confused with the forward slash /. They do not do the same thing.


Change the provided string to a string with single quotes at the beginning and end and no escape characters.

Right now, the <a> tag in the string uses double quotes everywhere. You will need to change the outer quotes to single quotes so you can remove the escape characters.

Please Tell us what’s happening in your own words.

Learning to describe problems is hard, but it is an important part of learning how to code.

Also, the more you say, the more we can help!

hello and welcome to fcc forum :slight_smile:

also share these along with your queries

  • url for this step
  • code that you attempted for this step

happy learning :slight_smile:

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