MakeMyTrip interview question

How JS implements asynchronous behaviour ?