BFE.dev
buy us
a coffee
Codingproblems
Reactproblems
JavaScriptquizzes
Reactquizzes
TypeScriptpuzzles
CSSproblems
Interviewquestions
SystemDesign
Discussanything
buy us
a coffee

67. What is the difference between setTimeout and setInterval?

JavaScript
Share

First please understand 46. Explain Event Loop in Browser and in Node.js.

setTimeout could be used to mimic(sort of) the behavior of setInterval, there is an big difference between them though. This article on JavaScript.info explains it very well.

prevnext

relax!