Blog

Function rewrite and closure scope

The best thing about JavaScript is its implementation of functions. Functions are first-class objects. As such they can be constructed at run-time, passed as arguments to other functions, returned from a subroutine, or assigned into variables, objects, and arrays. These features provide the base for functional programming but require a better understanding of dynamic scoping. …