js allows us to create and handle custom events easily by using events module. Event module includes EventEmitter class which can be used to raise and handle custom events. The following example demonstrates EventEmitter class for raising and handling a custom event.