问答题806/1530【Promise第14题】下面代码的输出是什么?

1const promise = new Promise((resolve, reject) => { 2 reject("error"); 3 resolve("success2"); 4}); 5promise 6.then(res => { 7 console.log("then1: ", res); 8 }).then(res => { 9 console.log("then2: ", res); 10 }).catch(err => { 11 console.log("catch: ", err); 12 }).then(res => { 13 console.log("then3: ", res); 14 })
难度:
2022-01-09 创建

赞赏支持

预览

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