Goal 2: Javascript Practice

finished and verified the funcion to calculate the average of the
values of the array.