main javascript-web/lessons/03-arrays-map-filter-reduce

README.md

Lesson 3: Arrays: map, filter, reduce

In this lesson you'll work through arrays: map, filter, reduce step by step, with short exercises after each idea.

Full lesson: https://glibcode.net/courses/javascript-web/lessons/3

Files

  • arrays.js: map, filter and reduce on order totals

Tip: console.table(array) is much easier to read than console.log for lists of objects.

Run it

node arrays.js

Exercises

See exercises.md. Ask in the forum once you've tried.