A then callback returns an already-resolved promise. Where does its value show up among the numbers?
Promise.resolve()
.then(() => {
console.log("a");
return Promise.resolve("b");
})
.then((value) => console.log(value));
Promise.resolve()
.then(() => console.log(1))
.then(() => console.log(2))
.then(() => console.log(3))
.then(() => console.log(4));
The answer
Work out every line it logs, in order. Then check.
Checking your sign-in…