Promise Chaining: Multiple then calls

前端 未结 0 873
小鲜肉
小鲜肉 2021-01-12 04:48

What will be the output of the following snippet and why?

new Promise((resolve,reject) => resolve(10))
.then(data=>data*2)
.then(data=>{throw Error(\         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题