HomeTracks
Explorer···
THEEBUG
Completed0/11
Score0
JSlesson7.js×
THEEBUGlesson7.js
1
const students = [
2
{ name: "Ana", score: 80 },
3
{ name: "Bo", score: 90 },
4
];
5
 
6
const total = students.______((sum, ______) => sum + score, 0);
7
console.log(total); // 170
$[system] Theebug ready. Happy coding!
Code BlocksDrag blocks into the drop zones above
8 blocks available
reduce
map
filter
forEach
{ score }
score
{ name }
student
Game Panel
0:000 pts
Level 7 of 11Destructuring in Callbacks
0/2 slots correct
Objective
Choose the array method that collapses the list into one total, then destructure each student object to pull out just the score
Expected Output
170
Debug says:
Two blanks this time! First: which array method collapses a whole list down into one single running total? Second: destructure the callback's parameter to grab just the score property directly.
Debug the Worm