Introduction
Events help programs respond to actions or changes automatically. They let parts of a program talk to each other without being tightly connected.
When a button is clicked in a user interface and you want to run some code.
When a file finishes downloading and you want to start processing it.
When a sensor detects a change and you want to update the display.
When a timer reaches zero and you want to trigger an alert.