What goes in the blank?
// wait for all of them, keeping order const results = await Promise.____(tasks);
Answer: all
Promise.all resolves to an ordered array, rejecting as soon as any input rejects.// wait for all of them, keeping order const results = await Promise.____(tasks);
Answer: all
Promise.all resolves to an ordered array, rejecting as soon as any input rejects.