DEV Community πŸ‘©β€πŸ’»πŸ‘¨β€πŸ’»

Discussion on: What’s your alternative solution? Challenge #5

Collapse
shankarsridhar profile image
Shankar Sridhar
var numbers = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10];
numbers.reduce((acc, item) => acc + number, 0);