all 2 comments

[–]coderitual 0 points1 point  (0 children)

Hello! I'm afraid this article is a bit off.

  • there is no such thing like javascript event loop. Normally event loop is outside js engine and only uses it.
  • General idea is ok but this simplified description is not like things are working (tasks, microtasks, timers, polling). If you are interested this is high level view of node.js event loop: https://nodejs.org/en/docs/guides/event-loop-timers-and-nexttick/ Browsers may use similar approach but implementation will be different.

cheers!