Two promise chains start at the same time. How do their callbacks interleave?
Promise.resolve()
.then(() => console.log("a1"))
.then(() => console.log("a2"))
.then(() => console.log("a3"));
Promise.resolve()
.then(() => console.log("b1"))
.then(() => console.log("b2"))
.then(() => console.log("b3"));
The answer
Work out every line it logs, in order. Then check.
Checking your sign-in…