In this video, we will learn about the Events Core Module in Node.js and then we will also understand the Event Emitter class of Node.js and the methods that we can use on the event emitter instances that we create to listen for an event ( on method ) and to fire an event, we have the emit method that is used to emit an event name to which you can optionally pass a payload as well. The code for the video (if any) can be found on GitHub.
⏱ Timestamps ⏱
📌 understanding observer pattern, events and event emitter (0:00)
📌 event emitter in action (an example) (2:46)
----------------------------------------
🐱💻 🐱💻 Course Links:
Complete Code - https://github.com/The-Nerdy-Dev
Visual Studio Code - https://code.visualstudio.com
Git - https://git-scm.com/downloads
---
Support my channel:
💜 Join the Discord community 👨👩👧👦: / discord
💜 One time donations via PayPal
Thank you! 🙏
---
Follow me on:
👉 Twitter: / the_nerdy_dev
👉 Instagram: / thenerdydev