10000 Update calculator.js · M-Munk/javascript-exercises@3e28169 · GitHub
[go: up one dir, main page]

Skip to content

Commit 3e28169

Browse files
authored
Update calculator.js
1 parent 3182c2c commit 3e28169

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
@@ -12,7 +12,7 @@ function sum(array) {
1212

1313
function multiply(array) {
1414
return array.length
15-
? array.reduce((accumulator, nextItem) => accumulator * nextItem
15+
? array.reduce((accumulator, nextItem)< 4807 /span> => accumulator * nextItem)
1616
: 0;
1717
}
1818

0 commit comments

Comments
 (0)
0