Guys, I’m a cicada… Today is “July 9, 2020,” and today is “day 13” of sharing. Recently, I got back the interview question Promise, the probability of appearing is very large, if I didn’t understand the things I use every day, it would be a joke! 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)


Scope (this)

  
    console.log('1');
    setTimeout(() => {
        console.log('2')
    }, 0);
 new Promise((resolve, reject) => {  setTimeout(() => {  console.log('3');  }, 0);  console.log('4');  resolve();  console.log('5');  }).then(() = > { console.log('6');  });  console.log('7'); Copy the code

The countdown begins !!!!


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