Introduction
The EventEmitter class helps your program talk to itself by sending and listening for messages called events.
You want to run some code when a file finishes loading.
You want to react when a user clicks a button in a server-side app.
You want to handle errors or special signals in your program.
You want different parts of your program to communicate without being tightly connected.