Back to Freecodecamp

Say Hello to HTML Elements

curriculum/__fixtures__/english/challenge-jsx-comments.md

latest733 B
Original Source

Description

<section id='description'>
js
  // change code below this line
</section>

Instructions

<section id='instructions'> To pass the test on this challenge, change your <code>h1</code> element's text to say "Hello World". </section>

Tests

<section id='tests'>
yml
tests:
  - text: Your <code>h1</code> element should have the text "Hello World".
    testString: assert.isTrue((/hello(\s)+world/gi).test($('h1').text()));

</section>

Challenge Seed

<section id='challengeSeed'> <div id='jsx-seed'>
jsx
{ /* Add your code below this line */ }
{ /* Add your code above this line */ }
</div> </section>

Solution

<section id='solution'>
html
<h1>Hello World</h1>
</section>