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: button onclick function document.getElementById innerHTML
0% match

Back to Exercise