Which is the function that calls another function after a time interval?

Nguyễn Tân

New member
Which is the function that calls another function after a time interval?
A. setTimeout()
B. setTime()
C. callafter()
D. timeSet()
 
Answer: a
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.
 

Tìm kiếm

Back
Top