3 ms·
One of my favorite things is this interactive demo of the js event loop: https://news.ycombinator.com/item?id=27942699 https://news.ycombinator.com/item?id=2794
by IggleSniggle 5y ago
One of my favorite things is this interactive demo of the js event loop: https://news.ycombinator.com/item?id=27942699 https://news.ycombinator.com/item?id=27942699
- tarkin2 5y agoThe linked video is the best. I had no idea how to use the linked website before I watched the video. And then when I watched the video and realised I didn't need to use the website to understand. I gleemed: "Javascript passes callbacks to asynchronous third-party APIs (fetch etc). Once those APIs are finished, they pass those callbacks on the "callback stack". The event loop, when the call stack is empty, then moves those callbacks onto the call stack for processing." The posted article is a bunch of fluff and then an advert.
- titzer 5y agoIs this the same people? Because the website has an almost exact copy of the diagram at 3:54 in the video.