Skip to content

Lesson 04 · JavaScript

JavaScript Foundations: Iterating & Transforming

Working over collections in practice: plain loops, map, filter, reduce, find, some and every - what each returns, and honest guidance on choosing between them.

Prerequisites: JavaScript Foundations: Arrays & Objects

Learning objectives
By the end of this lesson, you will be able to:
  • Choose between a plain loop and an array method for a task
  • Transform every item into a new array with map
  • Select items with filter and find
  • Reduce a collection to a single value with a starting accumulator
  • Answer yes-or-no questions with some and every, and chain transformations