Try a Class
How Classes Work
In this project we’ll make an interactive counter that can do simple addition and subtraction.
For an example, click
Give your page a title.
Create an HTML element with “0” inside it.
Create a button that says “Plus” and runs the code.
Create a “Minus” button that does the opposite.
Add a text input box to the page. When you click “Plus” or “Minus”, update the number by the amount in the box.
Continue working until you are happy with your project.
Submit your website below.
all or Text us at
Your Email Address