Home / CSE / Javascript - CS :: Discussion

Discussion :: Javascript - CS

  1. Which method receives the return value of setTimeout() to cancel future invocations?

  2. A.

     clearTimeout()

    B.

     clearInterval()

    C.

     clearSchedule()

    D.

     none of the mentioned

    View Answer

    Workspace

    Answer : Option A

    Explanation :

    setTimeout() returns a value that can be passed to clearTimeout() to cancel the execution of the scheduled function.


Be The First To Comment