This article gives better understanding on how JavaScript engine work with events
 
Categories: Asynchronous | Javascript