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:
Heramb 2017-08-23 16:31:57 -07:00 committed by GitHub
parent 468a769b51
commit 4e3d209fc2

View file

@ -20,6 +20,7 @@ function sumInput() {
for (let number of numbers) {
sum += number;
}
return sum;
}
alert( sumInput() );