wrong?
I shoulf create a function and concat all even numbers
const arr=[1, 2, 3, 4, 5, 6, 7, 8, 9, 10];
const sum = arr => arr.filter(v => v % 2 === 0).reduce((a, b) => a + b, 0)
you want to concat numbers? or want to do addition?
Обсуждают сегодня