Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 4e3d209

Browse files
authoredAug 23, 2017
Updated solution.md
the function sumInput() needs return statement (added now at line 23) so that the alert(sumInput()) shows correct output (now on line 26).
1 parent 468a769 commit 4e3d209

File tree

1 file changed

+1
-0
lines changed
  • 1-js/05-data-types/04-array/5-array-input-sum

1 file changed

+1
-0
lines changed
 

‎1-js/05-data-types/04-array/5-array-input-sum/solution.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ function sumInput() {
2020
for (let number of numbers) {
2121
sum += number;
2222
}
23+
return sum;
2324
}
2425

2526
alert( sumInput() );

0 commit comments

Comments
 (0)
Please sign in to comment.