1 Array methods
map transforms, filter selects and reduce aggregates — all without mutating the original array.
const nums = [1, 2, 3, 4, 5];
const evens = nums.filter(n => n % 2 === 0);
const sum = nums.reduce((a, b) => a + b, 0);
console.log('evens', evens);
console.log('sum', sum);