scrimba
Frontend Career Path
Essential JavaScript concepts
JS Mini Projects
The .reduce() Method Challenge
Go Pro!Bootcamp

Bootcamp

Study group

Collaborate with peers in your dedicated #study-group channel.

Code reviews

Submit projects for review using the /review command in your #code-reviews channel

The .reduce() Method Challenge
AboutCommentsNotes
The .reduce() Method Challenge
Expand for more info
index.js
run
preview
console
const grades = [75, 83, 66, 43, 55, 99, 87, 16, 89, 64, 70, 80, 94, 77, 66, 73]

/*
Challenge
1. Use the .reduce() method to find the total of all of the students grades.
2. Do some simple maths to log out the class average.
*/


console.log(`The class average is ????`)
Console
"The class average is ????"
,
/index.html
-3:36