Kizspy | Question: 44
(Choose 1 answer)
Which is wrong statement about the different between setImmediate() and setTimeout()?
A. setImmediate() schedules the callback function to run immediately after the current event loop iteration,regardless of the delay specified.
B. setTimeout() schedules the callback function to run after a specified delay, which can be zero (i.e.,immediately) or a positive integer representing the number of milliseconds to wait.
C. If both setTimeout() and setImmediate() are called in the same loop iteration, setTimeout() will be executed before setImmediate ().
D. None of the above