What output will this code produce in the console? const EventEmitter = require('events');
const myEmit = new EventEmitter();
myEmit.on('slick', () => {});
myEmit.on('key', () => {});
const symbol = Symbol('init');
myEmit.on(symbol, () => {});
console.log(myEmit.eventNames());
Correct Answer: [ 'slick', 'key', Symbol(init) ]
Explanation:
Note: This Question is unanswered, help us to find answer for this one
More Node.js MCQ Questions