average
Calculates the average of two or more numbers.
- Use
Array.prototype.reduce()
to add each value to an accumulator, initialized with a value of0
. - Divide the resulting array by its length.
Calculates the average of two or more numbers.
Array.prototype.reduce()
to add each value to an accumulator, initialized with a value of 0
.