Home / CSE / Javascript - CS :: Discussion

Discussion :: Javascript - CS

  1. What is the function used to remove all handlers for name events?

  2. A.

     deleteAllListeners(name)

    B.

     deleteListener(name,f)

    C.

     removerListener(name,f)

    D.

     removeAllListeners(name)

    View Answer

    Workspace

    Answer : Option D

    Explanation :

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


Be The First To Comment