When the “end” event fires on EOF when no more data will arrive, which function is called?
A. s.on("data",f);
B. s.on("end",f);
C. s.on("error",f);
D. s.on("default",f);
Answer: Option B
A. s.on("data",f);
B. s.on("end",f);
C. s.on("error",f);
D. s.on("default",f);
Answer: Option B
What are the events generated by the Node objects called?
A. generators
B. emitters
C. dispatchers
D. highevents
What is the function used to deregister event handler ‘f’?
A. deleteAllListeners(name)
B. deleteListener(name,f)
C. removerListener(name,f)
D. removeAllListeners(name)
What is the function used to remove all handlers for name events?
A. deleteAllListeners(name)
B. deleteListener(name,f)
C. removerListener(name,f)
D. removeAllListeners(name)
Join The Discussion