8000 Update calculator.js · GeraldCO/javascript-exercises@7b03e76 · GitHub
[go: up one dir, main page]

Skip to content

Commit 7b03e76

Browse files
authored
Update calculator.js
Fix typo
1 parent d3412c1 commit 7b03e76

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 multipy (array) {
13+
function multiply (array) {
1414
return array.length
1515
? array.reduce((accumulator, nextItem) => accumulator * nextItem): 0;
1616
}

0 commit comments

Comments
 (0)
0