Your function needs to iterate over an array of numbers to find the average.
The average is calculated by adding up all the scores and dividing by the total number of scores.
Tips
You can use a loop to iterate over the scores array and add up all the scores.
You can use the length property to get the total number of scores.
Your sum variable could be used to keep a running total as you iterate the array with a for loop, for instance. Then, after your loop has finished, you can divide the total (sum) by the length of the array to find the average. That’s the value which you should return from your function.
We can help you more if you give us an idea about what is making you stuck. Is there a specific sentence you need help understanding or a concept? The more descriptive your question, the more targeted the help.