Counter App
Easy
62
66.3% 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
- Creating HTML elements like buttons and paragraphs.
- Adding an id attribute to elements for easy reference.
- Adding an event listener to the button using JavaScript.
- Updating the innerHTML of an element to display the updated counter.