Learn how to use functional array methods in JavaScript to easily implement common problem solving strategies and avoid side effects.
Explore different concepts necessary to understand functional array methods, without any user interactions:
- Array Strategies: Functional array methods like
.map
and.filter
are just one implementation of common problem-solving strategies. Take some time to learn the strategies with imperative programming before moving on to function array methods. - Callbacks: Briefly explore how to pass functions as arguments, and how to call function arguments.
- Higher-Order Strategies: Merge Array Strategies and Callback by exploring example functions that implement common problem solving strategies using callbacks.
- Functional Array Methods: Finally! Study some examples that use functional array methods to solve simple problems.
Pass unit tests using functional array methods:
- Write callbacks
- Use callbacks
- Write functions
Briefly practice using arrow functions with implicit returns when the function body contains only one expression.
Integrate your skills by refactoring your solutions from the Arrays chapter to use functional array methods.
Challenge yourself by reimplementing previous array-based programs with a DOM UI.