Guest User

Untitled

a guest
Jan 19th, 2018
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.17 KB | None | 0 0
  1. [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
  2. .filter(num => num % 2 !== 0) // [1, 3, 5, 7, 9]
  3. .map(num => (num + 1) * 2) // [4, 8, 12, 16, 20]
  4. .reduce((sum, num) => sum + num, 0) // 60
Add Comment
Please, Sign In to add comment