Question 9/20
beginner
Select one answer

What is the difference between setTimeout and setInterval?

setTimeout runs code repeatedly, setInterval runs once
setTimeout runs code once after delay, setInterval runs repeatedly at intervals
They are exactly the same
setTimeout is synchronous, setInterval is asynchronous

Premium Question

Upgrade to unlock this question and 300+ more interview prep MCQs.