PolicyMe interview question

Explain the JavaScript event loop