how to get the average of number in an array javascript and print it code example
Example: calculate average in javascript
var a = [80, 77, 88, 95, 68];
console.log(eval(a.join('+'))/a.length)
var a = [80, 77, 88, 95, 68];
console.log(eval(a.join('+'))/a.length)