Click in order · JavaScript and TypeScript course · Module 12: Functional Programming

Array.reduce() Syntax

Arrange the elements of a reduce call that sums an array:

Items to click

  • , 0)
  • array.reduce(
  • (sum, item)
  • => sum + item

You can check the correct answer by solving this task in the CodeWorlds game.