选择题1题:依次输出什么?

1const myPromise = () => Promise.resolve('I have resolved!') 2 3function firstFunction() { 4 myPromise().then(res => console.log(res)) 5 console.log('second') 6} 7 8async function secondFunction() { 9 console.log(await myPromise()) 10 console.log('second') 11} 12 13firstFunction() 14secondFunction()
难度:
更新时间:2022-10-30

本题为单选题”

赞赏支持

预览

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