Introduction to Interactive Programming
Step 1 of 5
Events are things that happen in the browser that JavaScript can respond to. Think of events like signals that say "something just happened!"
Events make your website interactive! Without events, websites would just sit there. Events let you respond to what users do:
This code says: "When the button is clicked, run this function!"