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()
本题为“单选题”