Answer: Using reduce() method. The reduce() method is used to calculate the sum of all the elements of an array. This method executes a reducer function for ...
確定! 回上一頁