Count Within Limits

Write the code, see it run, pass the checks.

The problem

  • easy
  • Code

Build a counter that starts at 0 and shows "Count: 0", with "Increase", "Decrease" and "Reset" buttons. The count stays between 0 and 5: Decrease is disabled at 0 and Increase at 5. Reset puts it back to 0.

Your code must pass

  • Starts at 0 with Decrease disabled
  • Increase and Decrease change the count
  • Increase is disabled at 5
  • Reset goes back to 0