Basic JavaScript - Escaping Literal Quotes in Strings

Tell us what’s happening:
Describe your issue in detail here.
I am unable to escape literal quotes in strings any help please.

Your code so far

const myStr = "I am a \"double quoted \"string inside \"double quotes\"."; // 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/113.0.0.0 Safari/537.36

Challenge: Basic JavaScript - Escaping Literal Quotes in Strings

Link to the challenge:

Hey Dennis,
The devil is in the small detail, as with this example your approach and understanding is good - it is just the space between words. Try console.log() your string and compare it to the test section how it should look like. I bet you will laugh after finding out

good luck!

1 Like

I surely did laugh. Thank you

1 Like

No problem, these things will happen quite often, but the more you practice, the better eye you will get for such things :wink:

I have an issue with lesson 16 of HTML. would you mind to help me kindly.

If you have a question about a specific challenge as it relates to your written code for that challenge and need some help, click the Ask for Help button located on the challenge (it looks like a question mark). This button only appears if you have tried to submit an answer at least three times.

The Ask for Help button will create a new topic with all code you have written and include a link to the challenge also. You will still be able to ask any questions in the post before submitting it to the forum.

Thank you.

Thank you for an eye opening tip.
Since you seem to be advanced it almost all the lessons here, would you mind to help me with lesson 16 of HTML, I stuck and can’t seem to find help elsewhere kindly.

Follow the steps I posted to create your own topic, and then we can go from there

CatPhotoApp

  <h2>Cat Photos</h2>
  <!-- TODO: Add link to cat photos -->
  <p>See more <a target="_blank" href="https://freecatphotoapp.com">cat photos</a> in our gallery.</p>
  <a href="https://freecatphotoapp.com"><img src="https://cdn.freecodecamp.org/curriculum/cat-photo-app/relaxing-cat.jpg" alt="A cute orange cat lying on its back."></a>

</main>

That’s my code. I’m lost I don’t know how to proceed. Help if possible please.

As I said you need to follow these steps to create your own topic. We dont want to use the same topic for help with a different problem. Plus this is a javascript topic you are commenting in when your problem is with HTML. Follow those steps so it creates a topic in the right place with all your code and a link to the challenge.