Last active
November 19, 2019 05:58
-
-
Save myogeshchavan97/a90c369d19ff4cce4634aabc71c5be16 to your computer and use it in GitHub Desktop.
Get sum of numbers
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function addNumbers(numbers) { | |
let sum = 0; | |
numbers.forEach(function(value) { | |
sum += value; | |
}); | |
return sum; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment