Course · Section 10: A Closer Look at Functions · Lecture 137: First-Class and Higher-Order Functions
Implement `tally(words)` returning an object mapping each word to its count, built with `reduce`.
+ 1 hidden test run on Submit.
reduce builds the tally object by incrementing each word's count, returning the accumulator each step.
Run your code to see results.