B4Coder
0%
LessonAbout 7 min

Chapter 6 · Lesson 5 of 5

05. Totals and order: reduce and sort

Squash an array into one value with reduce (a total, the biggest), and put numbers in order with sort((a, b) => a - b).

Opening the lesson…