function find_avg (array) {
        var sum = 0;
        for (var x = 0; x < array.length; x++) {
            sum += array[x];
        }

        var avg = Math.round(sum / array.length);
        return avg;
    }
// fxn to find average of an array
fxn to find average of an array
fxn to find average of an array
function find_avg (array) {
        var sum = 0;
        for (var x = 0; x < array.length; x++) {
            sum += array[x];
        }
        var avg = Math.round(sum / array.length);
        return avg;
    }
function find_avg ( array ) { var sum = 0 ; for ( var x = 0 ; x < array . length ; x ++ ) { sum += array [ x ] ; } var avg = Math . round ( sum / array . length ) ; return avg ; }
fxn to find average of an array
fxn to find average of an array