JavaScript
Beginner
Button Counter
task_alt
Objectives
- Create a button that, when clicked, increases a counter displayed on the page. Each click should update the number using JavaScript.
- > Required code element: Use: button, onclick, function, document.getElementById, innerHTML
warning
Warning:
Launching this exercise opens an isolated playground environment. Progress is temporary and will reset if you close the editor window.