Javascript Closures
Popularity Report
![]() |
|||
![]() |
|||
![]() |
|||
![]() |
|||
![]() |
|||
![]() |
URL Tag Cloud
Groups (2)
Bookmark History
Saved by 51 people (10 private), first by anonymouse user on 2006-03-02
- Hillpig on 2008-08-25 - Tags no_tag
- Citole on 2008-08-10 - Tags javascript , programming
- Progprog on 2008-06-23 - Tags javascript , internals , reference
- Digiqr on 2008-06-20 - Tags javascript , programming , tutorial , reference , toread
- Vincent on 2008-06-17 - Tags javascript , programming , closure , reference
Public Sticky notes
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


Public Comment
on 2006-07-25 by aka_tazzo
on 2006-08-21 by tomwright
on 2006-11-16 by wildoats