re: newbie question help VIEW POST

FULL DISCUSSION
 

function avgValue (array=[]){
let sum = 0;
array.forEach(number => {
sum += number;
})
return sum/array.length
}

code of conduct - report abuse