JS Lab 3 progress

This commit is contained in:
2026-02-24 18:02:01 -05:00
parent f186c94048
commit a7b70a2a55
6 changed files with 58 additions and 12 deletions
+7
View File
@@ -0,0 +1,7 @@
export function calculateAssignmentAverage(student) {
if (!student.assignments || student.assignments.length === 0) {
return false;
}
const total = student.assignments.reduce((sum, score) => sum + score, 0);
return total / student.assignments.length;
}