Reading Class 15 - meron-401n14/seattle-javascript-401n14 GitHub Wiki
Event-Driven Programming in Node.js
Event-Driven Programming is a logical pattern that we can choose to confine our programming within to avoid issues of complexity and collision.
Event-Driven Programming makes use of the following concepts:
An Event Handler is a callback function that will be called when an event is triggered. A Main Loop listens for event triggers and calls the associated event handler for that event.
EventEmitter
is module provided by node.js to help us to get started incorporating Event-Driven Programming in our project right away.