I am getting an array of grades from an api but when it try to add them to get the avarege. they get printed instead of added.
this is the array from the api
grades: (8) ["71", "81", "72", "92", "79", "82", "91", "90"]
My code
student.grades.map((grades) => {
var avarge = 0;
avarge = avarge + grades;
return avarge;
})
Output
071081072092079082091090