I want to total the array using the reduce method. I would use a for loop and keep it simple, but it is for my college course.
console.log(weeklyTotal);
const totalCal = weeklyTotal.reduce((total, current) => total + current, 0);
console.log(totalCal);