Advertisement
Guest User

Untitled

a guest
Aug 24th, 2019
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.11 KB | None | 0 0
  1. const array = [1,2,3,4,5]
  2. array.reduce( (accumulator, currentElement) => accumulator + currentElement, 0 )
  3. 15
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement