We can also use the forEach method to loop through the number array and add up all the numbers. For example, we can write: const array = [1, 2, 3, 4]; let sum = ...
確定! 回上一頁