console.log(array1.reduce(reducer, 5)); ... return previousValue + currentValue.x }, initialValue) console.log(sum) // logs 6
確定! 回上一頁