$ ./guess_the_languageProblem Solving — fill the blank
Problem Solving — fill the blank · medium · #264

What goes in the blank?

// wait for all of them, keeping order
const results = await Promise.____(tasks);

Answer: all (also accepted: all, all())

Promise.all resolves to an ordered array, rejecting as soon as any input rejects.
Play Problem Solving ▸