Promise then callbacks
2022年5月1日小于 1 分钟
Promise then callbacks
Question
What does the code snippet to the right output by console.log
?
Snippet
Promise.resolve(1)
.then(() => 2)
.then(3)
.then((value) => value * 3)
.then(Promise.resolve(4))
.then(console.log)