Easy
In the following Node.js code, what will be the result?
const EventEmitter = require('events');
class MyEmitter extends EventEmitter {}
const myEmitter = new MyEmitter();
myEmitter.on('event', () => {
console.log('an event occurred!');
});
myEmitter.emit('event');
Edit
1
Community EvaluationsNo one has reviewed this question yet, be the first!