Room51 Technical Documentation
JavaScript
Examples
Closures
: A run through of some common examples of closures in the wild.
Closure Conundrum 1
: Investigating seemingly mysterious behaviour.
Closure Conundrum 2
: Arguments and loops.
Closure Conundrum 3
: Using our own array to pass arguments to the constructor.
Closure Conundrum 4
: Finale. Objects as parameters.
Prototypes
: Showing how properties are searched for in a chain and how objects can 'inherit' from others.
Prototypes - Placement
: How prototypes and constructors interact.
ProtoMart
: A tale of prototypes.
Object.beget()
: Douglas Crockford's method.
Timers
: Trying to show the difference between a central timer and individual timers for many objects.
Anonymous Function Recursion
: How an anonymous function can refer to itself.
Pre-filling Function Arguments
: Simplify your API. Mmmm naan.
External References
Closures
: In depth description from jibbering.com.
Scoping ananymous functions
: from dustindiaz.com.
Object Model
: from mozilla.org.