adspace


How to call multiple promises?

Answer Posted / Aakash Bajpai

You can call multiple promises in Node.js by using Promise.all(promisesArray) which returns a new promise that resolves with an array of the resolved values from each promise, in the same order they were passed. Alternatively, you can use async/await syntax to handle multiple promises sequentially or concurrently within a function.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is node js losing popularity?

590


How we can read a file in node js?

571