Grid Dynamics interview question

Explain how asynchronous JavaScript works?