SOURCE

console.log(111)
setTimeout(()=>{
    console.log(222)
},500)

new Promise(resolve=>{
    console.log(333)
    resolve()
}).then(()=>{
    console.log(444)
})

console.log(555)

setTimeout(()=>{
    console.log(666)
    new Promise(res=>{
        console.log(777)
        res()
    }).then(()=>{
        console.log(888)
    })
},600)

setTimeout(()=>{
    console.log(999)
},700)

new Promise(res=>{
    console.log('aaa')
    res()
}).then(()=>{
    console.log('bbb')
})
console.log('ccc')

console 命令行工具 X clear

                    
>
console