#MissXing #JavaScript #eventloop
In this video, I explained how setTimeout works inside browser. The callback in setTimeout isn't run immediately even given delay time is 0. Because setTimeout is asynchronous APIs, the callback functions are executed only when the stack is empty.
On this page of the site you can watch the video online 63. JavaScript Event loop - Single Thread, Stack, Heap, Web APIs, MacroTask Queue, Event loop, v8 with a duration of hours minute second in good quality, which was uploaded by the user Miss Xing (邢老师) 19 July 2022, share the link with friends and acquaintances, this video has already been watched 515 times on youtube and it was liked by 25 viewers. Enjoy your viewing!