Click here to view more cat photos.
Things cats love:
- cat nip
- laser pointers
- lasagna
Top 3 things cats hate:
<ol> element, followed by any number of <li> elements. Finally, ordered lists are closed with the </ol> tag.
For example:
```html
Top 3 things cats hate:
testString: assert((/Top 3 things cats hate:/i).test($("ol").prev().text()));
- text: You should have an unordered list for Things cats love:
testString: assert((/Things cats love:/i).test($("ul").prev().text()));
- text: You should have only one ul element.
testString: assert.equal($("ul").length, 1);
- text: You should have only one ol element.
testString: assert.equal($("ol").length, 1);
- text: You should have three li elements within your ul element.
testString: assert.equal($("ul li").length, 3);
- text: You should have three li elements within your ol element.
testString: assert.equal($("ol li").length, 3);
- text: Your ul element should have a closing tag.
testString: assert(code.match(/<\/ul>/g) && code.match(/<\/ul>/g).length === code.match(/ol element should have a closing tag.
testString: assert(code.match(/<\/ol>/g) && code.match(/<\/ol>/g).length === code.match(/li element should have a closing tag.
testString: assert(code.match(/<\/li>/g) && code.match(/li elements in your unordered list should not be empty.
testString: $('ul li').each((i, val) => assert(__helpers.removeWhiteSpace(val.textContent)));
- text: The li elements in your ordered list should not be empty.
testString: $('ol li').each((i, val) => assert(!!__helpers.removeWhiteSpace(val.textContent)));
```
Click here to view more cat photos.
Things cats love:
Top 3 things cats hate:
Click here to view more cat photos.
Things cats love:
Top 3 things cats hate: