Set the initial value in the reduce method to 0 . On each iteration, return the sum of the accumulated value and the current number. index.js.
確定! 回上一頁