Skip to main content

Create an interactive counterpractice exercise

HTML5andCSS3 logoPRACTICE

Build a small quantity controller. The displayed value must react to all three controls and must never become negative.

Acceptance criteria

  1. 1.Increment the value when + is selected.
  2. 2.Decrement the value when − is selected, but never below zero.
  3. 3.Reset the value to zero.
  4. 4.Display the current value in #count.
1
0 × 0

Output ready when you are

Press Run to render your code, or Submit to validate your solution.