We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e01173a commit e7dc791Copy full SHA for e7dc791
assignments/array-methods.js
@@ -84,6 +84,9 @@ console.log(largeShirts);
84
let ticketPriceTotal = [];
85
const calc = (acc, donate) =>
86
{return acc + donate}
87
+runners.forEach(function (object) {
88
+ ticketPriceTotal.push(object.donation)})
89
+ticketPriceTotal = ticketPriceTotal.reduce(calc))
90
console.log(ticketPriceTotal);
91
92
// ==== Challenge 5: Be Creative ====
0 commit comments