1.

Which function is used to clear the timer value?(a) clearTimervalue()(b) clearTimeout()(c) clear()(d) flush(timer)The question was posed to me during an interview for a job.This interesting question is from Animation in division Caching, Debugging and Animation of JavaScript

Answer»

The correct CHOICE is (b) clearTimeout()

Best explanation: The clearTimeout() METHOD clears a timer SET with the setTimeout() method. The ID value returned by setTimeout() is used as the parameter for the clearTimeout() method.



Discussion

No Comment Found

Related InterviewSolutions