MakeMyTrip Interview Question

How JS implements asynchronous behaviour ?