Events are things that happen. In programming, some of the events that can occur are clicking or moving the mouse, typing a key on the keyboard, or other user interaction.
When these events occur, nothing will happen unless you tell the program to listen for these events and what to do when these events occur.
If we want to execute some statements when one of these events occurs, we have to tell Alice to "listen" for that event. We do this by adding a listener. We tell it what event to listen for, and what function to execute when that event occurs.
After adding an event listener, that event will trigger the execution of a procedure or function. Programmers refer to this as "Event Handling."
In this module you will learn to use event listeners to respond to the mouse and keyboard, add drag and drop and other interactive features.