I recently attended a technical interview with a very huge tech giant company. The process was pleasant but unfortunately I could not pass through that interview.
This is one of the questions that I was asked in the interview that was a live coding question. I wrote the answer but it was not elegant. There were minor glitches that finally did not work in my favour.
In this video, I attempt to teach how to solve that in a proper way!
Event emitters are a part of the publish-subscribe pattern. Read more about it here: https://en.wikipedia.org/wiki/Publish...
The solution discussed in this video is uploaded here:
https://gist.github.com/ChaituKNag/3c...
Please subscribe to my channel for more such web developer tips and tutorials.
On this page of the site you can watch the video online JavaScript simple event emitter implementation | Tutorial | with a duration of hours minute second in good quality, which was uploaded by the user NagaKonada Devtips 30 August 2020, share the link with friends and acquaintances, this video has already been watched 239 times on youtube and it was liked by 8 viewers. Enjoy your viewing!