8000 Update calculator.js · M-Munk/javascript-exercises@3182c2c · GitHub
[go: up one dir, main page]

Skip to content

Commit 3182c2c

Browse files
authored
Update calculator.js
1 parent 5156aa6 commit 3182c2c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

calculator/calculator.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ function sum(array) {
1212

1313
function multiply(array) {
1414
return array.length
15-
? array.reduce((accumulator, nextItem) => accumulator * nextItem): 0;
15+
? array.reduce((accumulator, nextItem) => accumulator * nextItem
16+
: 0;
1617
}
1718

1819
function power(a, b) {

0 commit comments

Comments
 (0)
0