Course · Section 17: Modern JavaScript Development: Modules, Tooling, and Functional · Lecture 294: Declarative and Functional JavaScript Principles
Implement `counterReducer(state, action)` (`inc`, `dec`, `reset`, default unchanged) so it can be folded over an action list with reduce.
+ 1 hidden test run on Submit.
Because a reducer is pure, folding it over an action list replays a sequence of dispatches to the final state.
Run your code to see results.