1.9 KiB
1.9 KiB
id | title | challengeType | videoUrl | localeTitle |
---|---|---|---|---|
bad87fee1348bd9aedf08802 | Uncomment HTML | 0 | 取消注释HTML |
Description
<!--
开头,以-->
结尾Instructions
h1
, h2
和p
元素。 Tests
tests:
- text: 通过取消注释,使您的<code>h1</code>元素在您的页面上可见。
testString: 'assert($("h1").length > 0, "Make your <code>h1</code> element visible on your page by uncommenting it.");'
- text: 通过取消注释,使您的<code>h2</code>元素在您的页面上可见。
testString: 'assert($("h2").length > 0, "Make your <code>h2</code> element visible on your page by uncommenting it.");'
- text: 通过取消注释,可以在页面上显示您的<code>p</code>元素。
testString: 'assert($("p").length > 0, "Make your <code>p</code> element visible on your page by uncommenting it.");'
- text: 请务必删除所有尾随注释标记,即<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