4 ms·
This is a nicely consumable lightweight summary of how the node event loop works. In my experience this is one of the hardest things for new JS developers to ac
by jfaucett 11y ago
This is a nicely consumable lightweight summary of how the node event loop works. In my experience this is one of the hardest things for new JS developers to actually understand, especially those coming to the language with a limited asynchronous programming background. Here's a good link to how the browser event loop works for those interested: http://blog.carbonfive.com/2013/10/27/the-javascript-event-loop-explained/ http://blog.carbonfive.com/2013/10/27/the-javascript-event-l...
IMHO, there's just a few things you need to understand to start getting productive with js fast, #1 on the list is to know how the event loop in the browser/node works and this is a really good intro to the node side of things. #2 is event bubbling/capturing in the DOM (http://javascript.info/tutorial/bubbling-and-capturing http://javascript.info/tutorial/bubbling-and-capturing), and #3 would be everything about functions / function scoping.
Those are the parts I always try to explain first to devs I've mentored who were just jumping in to javascript.