Counter App

65.2% Acceptance

In this lab, you will create a simple counter app. The app consists of an HTML button and a paragraph element to display the counter. When the user clicks on the button, it should increment the counter by 1. The counter should not exceed a maximum value of 10.

Concepts involved

  1. Creating HTML elements like buttons and paragraphs.
  2. Adding an id attribute to elements for easy reference.
  3. Adding an event listener to the button using JavaScript.
  4. Updating the innerHTML of an element to display the updated counter.