Skip to main content

Popularity Report

Total Popularity Score: 0

Loading...
Loading...
Loading...
Loading...
Loading...
Loading...

Rank

Related Lists

Bookmark History

Saved by 60 people (-19 private), first by anonymouse user on 2006-03-02


Public Comment

on 2006-07-25 by aka_tazzo

e anything, so

on 2006-08-21 by tomwright

An extended discussion of closures with some examples

on 2006-11-16 by wildoats

excellent

Public Sticky notes

A closure is formed when one of those inner functions is made accessible outside of the function in which it was contained, so that it may be executed after the outer function has returned. At which point it still has access to the local variables, parameters and inner function declarations of its outer function.

Highlighted by jstevenson_be

A closure is formed when one of those inner functions is made accessible outside of the function in which it was contained, so that it may be executed after the outer function has returned. At which point it still has access to the local variables, parameters and inner function declarations of its outer function

Highlighted by jstevenson_be

A closure is formed when one of those inner functions is made accessible outside of the function in which it was contained, so that it may be executed after the outer function has returned. At which point it still has access to the local variables, parameters and inner function declarations of its outer function

Highlighted by jstevenson_be

Closure
A "closure" is an expression (typically a function) that can have free variables together with an environment that binds those variables (that "closes" the expression).

Highlighted by benxshen

Closures are one of the most powerful features of ECMAScript (javascript) but they cannot be property exploited without understanding them

Highlighted by digiqr

The simple explanation of a Closure is that ECMAScript allows inner functions; function definitions and function expressions that are inside the function bodes of other functions. And that those inner functions are allowed access to all of the local variables, parameters and declared inner functions within their outer function(s).

Highlighted by vincent

Function objects created with the Function constructor always have a [[scope]] property referring to a scope chain that only contains the global object.

Function objects created with function declarations or function expressions have the scope chain of the execution context in which they are created assigned to their internal [[scope]] property.

Highlighted by digiqr

Example 2: Associating Functions with Object Instance Methods

Highlighted by benxshen