Home / Programming MCQs / JavaScript MCQs / Question

M

Mr. Dubey • 51.43K Points
Coach

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

(A) clearInterval()
(B) clcearTimeout()
(C) both clearInterval() and clcearTimeout()
(D) none of the mentioned
Explanation by: Mr. Dubey
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.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.