JavaScript can react to clicks, change text and talk to servers.
// script.js const button = document.querySelector("#hello"); let clicks = 0; button.addEventListener("click", () => { clicks += 1; button.textContent = `Clicked ${clicks} times`; });