Q. Which method receives the return value of setTimeout() to cancel future invocations?

  • (A) clearTimeout()
  • (B) clearInterval()
  • (C) clearSchedule()
  • (D) none of the mentioned
πŸ’¬ Discuss
βœ… Correct Answer: (A) clearTimeout()
Explanation: setTimeout() returns a value that can be passed to clearTimeout() to cancel the execution of the scheduled function.
Explanation by: Mr. Dubey
setTimeout() returns a value that can be passed to clearTimeout() to cancel the execution of the scheduled function.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
137
Total Visits
πŸ“½οΈ
3 y ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
80%
Success Rate