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)

Answer: Option D

Solution(By Examveda Team)

The removeAllListeners(name) is used to remove all handlers from name events represented as :

Join The Discussion

Related Questions on Server Side and Client Side Scripting

What is the code to print hello one second from now?

A. setTimeout(function() { console.log("Hello World"); }, 1000);

B. setTimeout(function() { 1000, console.log("Hello World"); });

C. setTimeout(function(1000) { console.log("Hello World"); });

D. setTimeout(function() { console.log("Hello World"); });