the LEGO Group interview question

Describe the JavaScript event loop and event-driven programming.