Event Loop

Before diving into the Event Loop, let's first understand a little about JavaScript and how it works.