async function a(){ for(var i=0;i<10;i++){ console.log(new Date) console.log(await 'aaa'); } } function b(){ console.log('bbb') } a() b()