--- id: 5a24bbe0dba28a8d3cbd4c5e title: Add Comments in JSX challengeType: 6 isRequired: false videoUrl: '' localeTitle: '' --- ## Description undefined ## Instructions
يحتوي محرر التعليمة البرمجية على عنصر JSX مشابه لما قمت بإنشائه في التحدي الأخير. أضف تعليقًا في مكان ما داخل عنصر div المقدم ، بدون تعديل عناصر h1 أو p الحالية.
## Tests
```yml tests: - text: يجب على JSX المستمر إرجاع عنصر div . testString: 'assert(JSX.type === "div", "The constant JSX should return a div element.");' - text: يجب أن يحتوي div على علامة h1 باعتبارها العنصر الأول. testString: 'assert(JSX.props.children[0].type === "h1", "The div should contain an h1 tag as the first element.");' - text: يجب أن يحتوي div على علامة p كعنصر ثانٍ. testString: 'assert(JSX.props.children[1].type === "p", "The div should contain a p tag as the second element.");' - text: يجب أن تتضمن JSX تعليقًا. testString: 'getUserInput => assert(getUserInput("index").includes("/*") && getUserInput("index").includes("*/"), "The JSX should include a comment.");' ```
## Challenge Seed
```jsx const JSX = (

This is a block of JSX

Here's a subtitle

); ```
### After Test
```js console.info('after the test'); ```
## Solution
```js // solution required ```