选择题1404/1530输出什么?

1const myPromise = Promise.resolve(Promise.resolve("Promise!")); 2 3function funcOne() { 4 myPromise.then(res => res).then(res => console.log(res)); 5 setTimeout(() => console.log("Timeout!"), 0); 6 console.log("Last line!"); 7} 8 9async function funcTwo() { 10 const res = await myPromise; 11 console.log(await res); 12 setTimeout(() => console.log("Timeout!"), 0); 13 console.log("Last line!"); 14} 15 16funcOne(); 17funcTwo();
难度:
2021-07-02 创建

本题为单选题”

赞赏支持

预览

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