Promise.all(), Promise.race(), and Promise.any()
In this Promise.race() example, which value will be logged to the console?
const p1 = new Promise(r => setTimeout(() => r('first'), 100));
const p2 = Promise.resolve('second');
const p3 = Promise.resolve('third');
Promise.race([p1, p2, p3])
.then(value => console.log(value));