Vidyalelo
JavaScript · Q9

Parsing, Benchmarking And Logging

Programming · JavaScript · question 9

Q9

What is the method used to stop an execution of a method?

A.
clearInterval()
B.
clcearTimeout()
C.
both clearInterval() and clcearTimeout()
Answer
D.
none of the mentioned

Answer: Option C

Solution

Answer: Option C
Solution:
The clearInterval() method is used to stop further executions of the function specified in the setInterval() method) The clearTimeout() method is used to stop the execution of the function specified in the setTimeout() method.