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

In a custom EventEmitter, when does the special 'newListener' event fire relative to the listener being added?

const ee = new EventEmitter(); ee.on('newListener', (name) => console.log('adding', name)); ee.on('foo', () => {});