What the heck is the event loop anyway?

The event loops job is to look at the stack and look at the task queue. If that stack is empty it takes the first thing on the queue and pushes it on to the stack.

Philip Roberts – JSConf EU