Function Functions

In the last episode, we used higher-order functions to eliminate duplication in our event handlers. We start this episode with an explanation of how that works, then demonstrate a technique for creating private methods in JavaScript. With that, our client.js changes are done. Next, we return to extracting our event creation functions from our test code.

comments powered by Disqus