node eventemitter instance code example Example: eventemitter nodejs myEmitter.on('status', (code, msg)=> console.log(`Got ${code} and ${msg}`));