SDN302_-_FA_2024_-_FE_3014.webp
M

SDN302_-_FA_2024_-_FE_3014.webp

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

Thông tin

Category
SDN302
Thêm bởi
Minh Tâm1
Ngày thêm
Lượt xem
2,737
Lượt bình luận
18
Rating
0.00 star(s) 0 đánh giá

Share this media

Back
Bên trên Bottom