To find average in JavaScript, do this:
numbers.reduce((a, b) => a + b) / numbers.length
.Here's how you do it:
const numbers = [ 4, 88, 10 ];
const average = numbers.reduce((a, b) => a + b) / numbers.length;
console.log(average); // 34