Question: Suppose we have 3 events registered in our program: • Develop a Node.JS code that will return the name of even
Posted: Tue Jul 12, 2022 8:05 am
Question: Suppose we have 3 eventsregistered in our program:
• Develop a Node.JS code that will return the name of eventscurrently registered?
• Also write code to get the number of listeners registered fora particular event?
Note: Use EventEmitter.eventNames() andEventEmitter.listenerCount()
Someone solve this question and also showoutput
• Develop a Node.JS code that will return the name of eventscurrently registered?
• Also write code to get the number of listeners registered fora particular event?
Note: Use EventEmitter.eventNames() andEventEmitter.listenerCount()
Someone solve this question and also showoutput