SOURCE

function fn1(){
  console.log("111");
  setTimeout(function() {
    console.log(1)
  }, 0)
}
function fn2(){
  console.log("22")
}
fn1()
fn2()
//console.log(fn2)
//fn1(fn2);


/*Promises
@resolve 决定
@reject 拒绝
*/
let fn3 = new Promise((resolve,reject)=>{
    console.log('任务1:→',resolve,reject)
});
//fn3()
fn3.then((val)=>{
    console.log('任务2:→')
})


//await

//asnyc
console 命令行工具 X clear

                    
>
console