Home / CSE / Javascript - CS :: Discussion

Discussion :: Javascript - CS

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

  2. A.

     clearInvocation()

    B.

     cancelInvocation()

    C.

     clearInterval()

    D.

     None of the mentioned

    View Answer

    Workspace

    Answer : Option C

    Explanation :

    Like setTimeout(), setInterval() returns a value that can be passed to clearInterval() to cancel any future invocations of the scheduled function.


Be The First To Comment