Capgemini interview question

Asked Event Loop in Js