Contact: aviboots(AT)netvision.net.il
41,431 questions
53,978 answers
573 users
const arr = [6, 8, 1, 2, 5]; let sum = arr.reduce((x, y) => x + y); console.log(sum); /* run: 22 */