Behaviour of setInterval with respect to Event loop Trying to figure out why the output of the following code is the way it is