diff --git a/index.js b/index.js index f73934895..441a22e2c 100644 --- a/index.js +++ b/index.js @@ -1,3 +1,4 @@ const batteryBatches = [4, 5, 3, 4, 4, 6, 5]; // Code your solution here +const totalBatteries = batteryBatches.reduce((totalCount, battery) => totalCount + battery, 0)