Generated Content — exercises and bug fixes
5 hands-on exercises and 5 find-the-bug challenges for the Generated Content lesson. Every one is checked automatically in the browser — write the code, run it, and the tests tell you what still fails.
Exercises(5)
- 1
Start a counter
easy10 minReset a counter named section to 0 on #list.
- 2
Start from a number
easy10 minReset a counter named step to 5 on #list.
- 3
Increment a counter
easy10 minIncrement section by 1 on each .item.
- 4
Increment by two
easy10 minIncrement section by 2 on each .item.
- 5
Set up a numbered list
medium10 minReset section on the list and increment it on each item.
Find the bug(5)
- 1
Fix the misspelled property
easy8 minThe property is counter-reset.
- 2
Fix the wrong start value
easy8 minThe counter should begin at 5.
- 3
Fix reset used instead of increment
easy8 minEach item should advance the counter, not restart it.
- 4
Fix the increment step
easy8 minThe counter should advance by 2.
- 5
Fix the counter on the wrong element
easy8 minThe list resets it; the items increment it.
Ready to write the code?
The editor, the automatic checks and the worked solutions open up with an account.
Open the workspace