ServiceNow interview question

How does JavaScript asynchronous processing work?