← Back to JavaScript exercises
24. Button Click Event
Run
Result appears here
button.onclick=()=>output.textContent="Clicked";