M

Mr. Dubey • 52.74K Points
Coach

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

  • (A) Placed in stack
  • (B) Placed in queue
  • (C) Will run continuously
  • (D) None of the mentioned

Explanation by: Mr. Dubey
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.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.


Question analytics