Guys, I’m the cupcake guy… Today is “June 24, 2020,” and today is the “third day” of sharing. Interview questions are usually given 5-10 minutes to answer, so if you don’t come up with the correct answer within 10 minutes, read it carefully. One is to help the growing partners grow up (big god please ignore), the other is to temper their own will, learn with everyone, grow together… Don’t ask me why I called so many… Mature)


Asynchronous (sequential events)

    async function async1() {
        console.log("async1 start")
        await async2()
        console.log("async1 end")
    }
  async function async2() {  console.log("async2")  }   console.log("script start")   setTimeout(function() {  console.log("setTimeout")  }, 0)   async1() Copy the code

The countdown begins !!!!


You can leave your answers in the comments!! After work in the evening, we discussed…