EPAM Systems interview question

Explain the event loop and how asynchronous code works in JavaScript.