← JavaScript Interview Questions

JavaScript Events

Create an event emitter that emits an event called `stop`. Also, create an event listener that listens for the stop event you just created. The following code will get you started.

const events = require('events');
const eventEmitter = new events.EventEmitter();
Asked 10 days ago by Jam Risser

There are no answers so far