Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

One of my favorite things is this interactive demo of the js event loop: https://news.ycombinator.com/item?id=27942699


The 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.


Is this the same people? Because the website has an almost exact copy of the diagram at 3:54 in the video.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: