Create a function funcA that receives an array of numbers and return their sum after 2 seconds

后端 未结 0 731
隐瞒了意图╮
隐瞒了意图╮ 2020-12-22 19:11

HTML

var array1 = [5, 5, 6];

var promi = new Promise(function A(mResolve, mReject) {
  var total = array1.reduce((a, b) => a + b);
  setT         


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