diff --git a/calculator/calculator.js b/calculator/calculator.js index 6037434..5ec472d 100644 --- a/calculator/calculator.js +++ b/calculator/calculator.js @@ -12,7 +12,8 @@ function sum(array) { function multiply(array) { return array.length - ? array.reduce((accumulator, nextItem) => accumulator * nextItem): 0; + ? array.reduce((accumulator, nextItem) => accumulator * nextItem + : 0; } function power(a, b) {