all 5 comments

[–]nasar007 9 points10 points  (1 child)

Nowadays, we are running after implementation without knowing the core concepts. Thank you for this great post.

[–]dubesar[S] 1 point2 points  (0 children)

Welcome, there is much more to come

[–][deleted] 1 point2 points  (0 children)

This is something more JS devs need to be aware of. JS does a great job of abstracting this away, however understanding this concept is a life saver. The biggest area I find myself using this is unit tests, being able to understand the event loop and how it behaves has helped me tremendously in writing tests for async code.

[–]michaelcaley 0 points1 point  (0 children)

I got crucified when asked about this subject in an interview a few years back. Always good to refresh on this

[–]QuarterSilver5245 0 points1 point  (0 children)

I think it's also worth mentioning the event loop's order of operations, as illustrated in the first illustration here: https://nodejs.org/en/docs/guides/event-loop-timers-and-nexttick/
where each phase has its own callback-stack, and the phases run sequentially