InterviewSolution
Saved Bookmarks
| 1. |
What is the method used to stop an execution of a method?(a) clearInterval()(b) clearTimeout()(c) both clearInterval() and clearTimeout()(d) clearmethod()I got this question in semester exam.This interesting question is from Creating a Shared Configuration File using JavaScript topic in portion Parsing, Benchmarking and Logging of JavaScript |
|
Answer» CORRECT ANSWER is (c) both clearInterval() and clearTimeout() Explanation: 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. |
|