logo
logo

Find Average

Find Average

Write a function
findAverage(arr)
that takes an array of numbers as input and returns the average of all the numbers in the array. Use a for loop to iterate through the array and compute the sum of all the numbers.
Console
Submit
Solution
00:00