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).
This commit is contained in:
parent
468a769b51
commit
4e3d209fc2
1 changed files with 1 additions and 0 deletions
|
@ -20,6 +20,7 @@ function sumInput() {
|
|||
for (let number of numbers) {
|
||||
sum += number;
|
||||
}
|
||||
return sum;
|
||||
}
|
||||
|
||||
alert( sumInput() );
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue