← Back to JavaScript exercises

24. Button Click Event

Result appears here
button.onclick=()=>output.textContent="Clicked";