1.9 KiB
1.9 KiB
id | title | challengeType | videoUrl |
---|---|---|---|
bad87fee1348bd9aedf08802 | Uncomment HTML | 0 | https://scrimba.com/p/pVMPUv/cBmG9T7 |
Description
<!--
, and ends with a -->
Instructions
h1
, h2
and p
elements.
Tests
tests:
- text: Make your <code>h1</code> element visible on your page by uncommenting it.
testString: assert($("h1").length > 0, 'Make your <code>h1</code> element visible on your page by uncommenting it.');
- text: Make your <code>h2</code> element visible on your page by uncommenting it.
testString: assert($("h2").length > 0, 'Make your <code>h2</code> element visible on your page by uncommenting it.');
- text: Make your <code>p</code> element visible on your page by uncommenting it.
testString: assert($("p").length > 0, 'Make your <code>p</code> element visible on your page by uncommenting it.');
- text: Be sure to delete all trailing comment tags, i.e. <code>--></code>.
testString: assert(!/[^fc]-->/gi.test(code.replace(/ *<!--[^fc]*\n/g,'')), 'Be sure to delete all trailing comment tags, i.e. <code>--></code>.');
Challenge Seed
<!--
<h1>Hello World</h1>
<h2>CatPhotoApp</h2>
<p>Kitty ipsum dolor sit amet, shed everywhere shed everywhere stretching attack your ankles chase the red dot, hairball run catnip eat the grass sniff.</p>
-->
Solution
// solution required