Capgemini Interview Question

Asked Event Loop in Js