Pergunta de entrevista da empresa Tata Consultancy Services

How would you handle asynchronous programming in JavaScript?