Level 2 · Core Development
Module 7: Functional Array Processing
forEach and iteration
Use forEach with its element, index and array parameters, write callbacks inline or by name, and know when forEach is the wrong tool.
Lesson 32
map and transformations
Use map to transform every element into a new array, return values correctly from callbacks, map arrays of objects to new shapes, and keep the original unchanged.
Lesson 33
filter and selection
Use filter to keep the elements that pass a test, write clear predicate functions, combine conditions, and use some and every to answer yes/no questions about a list.
Lesson 34
reduce and aggregation
Use reduce to combine a list into one value, always provide an initial value, build totals, maximums, counts and grouped objects, and read a reduce call step by step.
Lesson 35
Combining array methods into processing pipelines
Chain filter, map, sort, slice and reduce into a processing pipeline, order the steps for correctness and efficiency, and debug a pipeline one step at a time.
Module mastery assessment
Eight questions and a practical task covering Lessons 31 to 35: forEach, map, filter, reduce and processing pipelines.