Guest User

Untitled

a guest
Nov 22nd, 2017
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.08 KB | None | 0 0
  1. var num = [1, 2, 3, 4, 5];
  2. var sum = num.reduce((acc, n) => {
  3. return acc + n;
  4. });
Add Comment
Please, Sign In to add comment