$ ./guess_the_languageProblem Solving — fill the blank
Problem Solving — fill the blank · hard · #162

Fill in the blank

// first one to settle wins
const fastest = await Promise.____([a, b]);

Answer: race (also accepted: race, race())

Promise.race settles as soon as the first promise does.
Play Problem Solving ▸