const array = [1, 2, 3, 4, 5];
const result = array.filter(n => n % 2).map(n => n * 2);
console.log(result);
Post #1434
6.61K
CHALLENGE
- ❤ 13
- 🔥 3
- 🤩 1