Asynchronous operations in javascript interview questions