BigBinary interview question

event loop in javascript and how does it work?