Skip to content

Commit 33125c6

Browse files
authored
Update functionalty.js
1 parent fedbf01 commit 33125c6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

functionalty.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ function filterArray(array, value) {
99
}
1010

1111
function sumOfArray(array) {
12-
return array.reduce();
12+
return array.reduce((a, b) => a + b, 0);
1313
}
1414

1515
function ascending(array) {

0 commit comments

Comments
 (0)