I dont understand this topic please explain

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

  **Your code so far**

const JSX = (
{/*<h1>This is a block of JSX</h1>
  <p>Here's a subtitle</p>*/}
  **Your browser information:**

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

Challenge: Add Comments in JSX

Link to the challenge:

Hello there.

Do you have a question?

If so, please edit your post to include it in the Tell us what’s happening section.

Learning to describe problems is an important part of learning how to code.

Also, the more information you give us, the more likely we are to be able to help.

okay so i was trying to comment but it is not working so i dont know why its i=not working

You commented out the h1 and p elements, so it’s going to fail the tests that require that the existing h1 and p elements are unchanged.

1 Like

Right, like ArielLeslie says, the issue isn’t comments per se but what you’ve decided to comment. You’ve commented it out correctly, but you commented out the code you needed.

Reread the instructions:

Add a comment somewhere within the provided div element, without modifying the existing h1 or p elements.

You want a comment inside the div, but outside the p and h1. So, for example, add a line before the h1 and add a comment there.

If I do that, your code passes for me.

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