Read: Class 16 Event Driven Applications - Goorob-401-advanced-javascript/amman-javascript-401d1 GitHub Wiki
Event Driven Programming :
- a logical pattern that we can choose to confine our programming within to avoid issues of complexity and collision. In this article we’re going to go over how Event-Driven Programming works and how we can make the best use of it in our Node.js projects.
Emitting Events :
Node.js natively provides us with a useful module called EventEmitter that allows us to get started incorporating Event-Driven Programming in our project right away. We access the EventEmitter class through the events module.