Which is the method used for registering handlers?

A. on()

B. register()

C. add()

D. include()

Answer: Option A

Solution(By Examveda Team)

Node objects that generate events (known as event emitters) define an on() method for registering handlers.

Join The Discussion

Related Questions on Server Side and Client Side Scripting