Skip to main content

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. 1

    Start a counter

    easy10 min

    Reset a counter named section to 0 on #list.

  2. 2

    Start from a number

    easy10 min

    Reset a counter named step to 5 on #list.

  3. 3

    Increment a counter

    easy10 min

    Increment section by 1 on each .item.

  4. 4

    Increment by two

    easy10 min

    Increment section by 2 on each .item.

  5. 5

    Set up a numbered list

    medium10 min

    Reset section on the list and increment it on each item.

Find the bug(5)

  1. 1

    Fix the misspelled property

    easy8 min

    The property is counter-reset.

  2. 2

    Fix the wrong start value

    easy8 min

    The counter should begin at 5.

  3. 3

    Fix reset used instead of increment

    easy8 min

    Each item should advance the counter, not restart it.

  4. 4

    Fix the increment step

    easy8 min

    The counter should advance by 2.

  5. 5

    Fix the counter on the wrong element

    easy8 min

    The 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