ExamVeda
Login
Home
Document Object Model and Event Handling
?

What will happen if we call setTimeout() with a time of 0 ms?

Answer & Solution
Correct Answer: Option B
If you call setTimeout() with a time of 0 ms, the function you specify is not invoked right away. Instead, it is placed on a queue to be invoked “as soon as possible” after any currently pending event handlers finish running.
Examveda
Question posted by Examveda
Community

Join the Discussion

No comments yet Be the first to discuss this question.