Medium
This question is a daily question and will count towards your daily streak.
You need to calculate the total score from an array of player objects using the reduce method. Which approach correctly computes the total score?
1const players = [ { name: "Alice", score: 15 }, { name: "Bob", score: 25 }, { name: "Charlie", score: 10 },];