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: button onclick function document.getElementById innerHTML
Official Solution
Try the next fix first. Answers stick better when you find them yourself. Show the solution anyway?