Examveda
Examveda

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

A. clearInvocation()

B. cancelInvocation()

C. clearInterval()

D. None of the mentioned

Answer: Option C

Solution(By Examveda Team)

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

Join The Discussion

Related Questions on Document Object Model and Event Handling