var getAverages = function(students){
var averages = [];
let sum=0;
//write your code here
for (grades in students) {
for (i=0;students[grades].length;i++) {
sum+=i;
let avg = sum/grades.length;
averages.push(avg)
}
}
return averages;
}
this is my code and it doesnt work! what changes should i make?
link to the problem: https://www.educative.io/courses/learn-web-development-from-scratch/7n9N5JMAjgQ