function average(nums) {
// nums.length is the important part
return nums.reduce((a, b) => (a + b)) / nums.length;
}
function mean2(numbers) {
const total = numbers.reduce(function(sum, number) {
return sum + number;
});
return total / numbers.length;
}