SOURCE

const name = async () => {
    var a1 = function () {
        setTimeout(() => {
            console.log("1")
        }, 0)
    }
    var a2 = function () {
        console.log("2")
    }

    var a3 = async function () {
        console.log("3")
    }

    var main = async () => {
        a1()
        await a3()
        a2()
    }
    await main()

    console.log("4")
}
name()
console 命令行工具 X clear

                    
>
console