Sign In
Curriculum
Find Average
Mark as Completed
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.
Click to go back
Click to go forward
Refresh preview
Console
Submit
Solution
00:00
Previous Lesson
Next Lesson