Grid Dynamics Interview Question

Explain how asynchronous JavaScript works?