Event loop

Explanation of event loop in JavaScript