`map` transforms each element, `filter` selects subsets, `reduce` folds to a single accumulator, and `for...of` enables `await` inside loops.
js const fees = [21000, 45000, 60000]; const total = fees.reduce((a, b) => a + b, 0);
100 XP to Apprentice
map, filter, reduce and for...of.
AI translates the explanation and quiz text while preserving code and answer scoring.
`map` transforms each element, `filter` selects subsets, `reduce` folds to a single accumulator, and `for...of` enables `await` inside loops.
js const fees = [21000, 45000, 60000]; const total = fees.reduce((a, b) => a + b, 0);
1. Which method folds an array to one value?
2. Which loop cleanly supports `await` per iteration?
3. What does array.map() return?