why use eventemitter in express js code example
Example: eventemitter nodejs
myEmitter.on('status', (code, msg)=> console.log(`Got ${code} and ${msg}`));
myEmitter.on('status', (code, msg)=> console.log(`Got ${code} and ${msg}`));