Click Events
Interactivity means listening. addEventListener waits for the user to click, then runs your function. This is how every button on the web works.
What you'll learn
Respond to a user click.
New command
button.addEventListener('click', () => { โฆ })๐ป Code Editorhtml
๐ฌ
Press Run Code to see your creation!