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

Skip to content

Commit 5156aa6

Browse files
authored
Update calculator.js
1 parent 7b03e76 commit 5156aa6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

calculator/calculator.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ function sum(array) {
1010
return array.reduce((current, total) => total + current, 0);
1111
}
1212

13-
function multiply (array) {
13+
function multiply(array) {
1414
return array.length
1515
? array.reduce((accumulator, nextItem) => accumulator * nextItem): 0;
1616
}

0 commit comments

Comments
 (0)
0