0 votes
in JavaScript by
Which method receives the return value of setInterval() to cancel future invocations?

a) clearInvocation()

b) cancelInvocation()

c) clearInterval()

d) clear()

1 Answer

0 votes
by
Answer:-  C

Reason:  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.

Related questions

0 votes
asked Mar 7 in JavaScript by DavidAnderson
+1 vote
asked Feb 6, 2020 in JavaScript by rajeshsharma
...