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

Đạt Michio

New member
Which method receives the return value of setInterval() to cancel future invocations?
A. clearInvocation()
B. cancelInvocation()
C. clearInterval()
D. clear()
 
Answer: c
Explanation: Like setTimeout(), setInterval() returns a value that can be passed to clearInterval() to cancel any future invocations of the scheduled function. The ID value returned by setInterval() is used as the parameter for the clearInterval() method.
 

Tìm kiếm

Back
Top