1.

Which is the function that calls another function after a time interval?(a) setTimeout()(b) setTime()(c) callafter()(d) timeSet()This question was posed to me by my school teacher while I was bunking the class.This key question is from Animation topic in portion Caching, Debugging and Animation of JavaScript

Answer»

Correct OPTION is (a) SETTIMEOUT()

Explanation: The setTimeout(function, duration) CALLS function after duration MILLISECONDS from now. setInterval(function, milliseconds) is same as setTimeout(), but repeats the execution of the function continuously.



Discussion

No Comment Found

Related InterviewSolutions