SOURCE

console.log(1)

new Promise(function(resolve, reject) {
  console.log(2)
  resolve()
}).then(()=>{
  console.log(3)
})

console.log(4)

setTimeout(()=>{
  console.log(5)
},0)
console 命令行工具 X clear

                    
>
console