Skip to main content

Popularity Report

Total Popularity Score: 0

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

Rank

Groups (2)

  • InfokeyDEV

    InfokeyDEV

    14 members,293 bookmarks

    Infokey 開發小組共同分享的書籤。 歡迎提供你所推薦的網站及好文,讓我們一起更有效率的學習吧! ^_^

  • javascript

    javascript

    28 members,164 bookmarks

    no description

Related Lists

Bookmark History

Saved by 51 people (10 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

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