JS

JavaScript Code Output Challenge - Javascript func...

14.

What will be the output of the following code?

function calculateAverageScore(scores) {
  const total = scores.reduce((sum, score) => sum + score, 0);
  return total / scores.length;
}

console.log(calculateAverageScore([76, 82, 90, 88, 94, 87]));

86

89.166

87.16666666666667

86.16666666666667