Quiz Question 1 of 6
Which of the following best describes Promise.all()
?
Choose the correct answer below:
-
A
Promise.all
is useful when you need to do some clean up after a promise sequence finishes. -
B
Promise.all
handles both fulfilled and rejected promises. It accepts two functions as its arguments, one for fulfilled promises and an optional one for rejected promises. -
C
Promise.all
handles rejected promises and provides a rejection reason. -
D
Promise.all
joins multiple individual promises into a single returnedPromise
when all of the promises resolve.