loading
index.js
1
2
3
4
5
6
7
8
9
const students = [
  { name: "john", finalExamGrade: 90 },
  { name: "mary", finalExamGrade: 95 },
  { name: "rebecca", finalExamGrade: 92 }
];

const studentScores = students.reduce((acc, student) => ({ ...acc, [student.name]: student.finalExamGrade }), {})

console.log(studentScores)
Fetching token