AutoFi interview question

What is an event loop in JavaScript?