score:2

Accepted answer
function arrayAverage(arr){
  //Find the sum
  const sum = arr.reduce((accumulator, mark) => (accumulator + mark));
  return sum / arr.length;
}

score:0

let marks = response.grades.map(grade => {
   return grade.mark;
})

Related Query

More Query from same tag