Calculate Average Grade

Challenge 📝

Resources 📚

Write a JavaScript function that calculates the average grade of a student based on the scores they achieved in different subjects. Given is the array scores. Return the calculated average rounded to two decimal places. The length of the array will be at least 1.

#JavaScript Arrays

Medium

unsolved

function calculateAverageGrade(scores) {
}
Test Cases
Console Logs
JS Errors
Run Code!
flag