I am new to Javascript and Asynchronous programming, a few things confuse me.
Consider the following code