Pregunta de entrevista de Geekyants Software

How does event loop work in javascript?