Skip to main content
Journey Uncommon Logo
JourneyUncommon
mediumNodeJScustom EventEmitter classesSingle-choice MCQ

What is the return value of emitter.emit(eventName, ...args)?

const ee = new EventEmitter(); const a = ee.emit('x'); ee.on('x', () => {}); const b = ee.emit('x');