11/13/15

Today's question on JavaScript

What is the difference between setTimeout and setInterval?
Please select exactly one correct alternative.

Answer

Both functions execute a given function in a given time. But setTimeout only executes this function once, while setInterval schedules a repeating execution.


More questions on JavaScript?

http://hansrontheweb.blogspot.nl/p/javascript-selftest.html

No comments:

Post a Comment