SAP interview question

Explain the event loop of JS