问答题70题:说说下面代码的输出结果

Promise.resolve().then(() => {
  console.log(0)
  return Promise.resolve(4)
}).then((res) => {
  console.log(res)
})

Promise.resolve().then(() => {
  console.log(1)
}).then(() => {
  console.log(2)
}).then(() => {
  console.log(3)
}).then(() => {
  console.log(5)
}).then(() =>{
  console.log(6)
})
难度:
更新时间:2024-01-03

赞赏支持

预览

题库维护不易,您的支持就是我们最大的动力!