ELI5: Explain Like I'm 5

Event-driven programming

Event-driven programming means writing code that only runs when a certain event happens. For example, when you click a button on a website, that might trigger a piece of code that changes the website. This kind of programming lets the computer respond to different activities that the user may do.