(async () => { console.log(1); setTimeout(() => { console.log(2); }, 0); await new Promise((resolve, reject) => { console.log(3); }).then(() => { console.log(4); }); console.log(5); })();
1、2、3、4、5
1、5、3、4、2
1、3、2
1、3、5、2
这道题你会答吗?花几分钟告诉大家答案吧!
扫描二维码,关注牛客网
下载牛客APP,随时随地刷题