callback, promise, async await

前端 未结 0 1643
既然无缘
既然无缘 2020-11-28 03:56

I have created the following code:

// Async await
const array = [1, 2, 3, 4];

function addNumbers(number) {
  setTimeout(() => {
    array.push(number);
          


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题