Tag: how to find average of array in javascript