Question 10 of 10Pro Only
Implement your own version of Promise.all. Explain its behavior on success and failure.
Sample answer preview
Promise.all takes an iterable of Promises and returns a single Promise that resolves when all input Promises resolve, or rejects as soon as one fails. On success, the returned Promise resolves with an array of results in the same order as the input Promises.
Promise.allPromise.allSettledPromise.raceimplementationasyncparallel