Skip to content

Instantly share code, notes, and snippets.

@myogeshchavan97
Last active November 19, 2019 05:58
Show Gist options
  • Save myogeshchavan97/a90c369d19ff4cce4634aabc71c5be16 to your computer and use it in GitHub Desktop.
Save myogeshchavan97/a90c369d19ff4cce4634aabc71c5be16 to your computer and use it in GitHub Desktop.
Get sum of numbers
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