An example of a simple higher-order function in javascript
<p>While going through <a href="http://eloquentjavascript.net/chapter6.html" rel="nofollow">Eloquent Javascript (Chapter 6)</a> there is a reference to higher-order functions in Javascript. While there is an example provided in Chapter 3, I believe it could be a bit simpler since I still don't fully understand the concept. After searching the web I can't seem to find any succinct examples of a higher-order function. </p>

<p>I'd like to see a basic/simple higher-order function in Javascript that will explain the concept. </p>
