Chapter 5
Recursion, Tail Recursion, and Accumulator Variables
Section 2
Optimization Techniques with Recursion
This section introduces some optimization techniques combating the drawbacks of using recursion. These optimization techniques are mixing functional and non-functional elements of JavaScript, tail call optimization, and memoization. - Understand the importance and benefits of mostly functional programming - Learn how to tail-call optimize a function - Implement a memoization utility function and use it to memoize a recursive function