Immediately-invoked function expression
An immediately-invoked function expression (or IIFE, pronounced "iffy") is a JavaScript programming language idiom which produces a lexical scope using JavaScript's function scoping. Immediately-invoked function expressions can be used to avoid variable hoisting from within blocks, protect against polluting the global environment and simultaneously allow public access to methods while retaining privacy for variables defined within the function. This concept has been referred to as a self-executing anonymous function, but Ben Alman introduced the term IIFE as a more semantically accurate term for the idiom, shortly after its discussion arose on comp.lang.javascript.
Wikipage redirect
primaryTopic
Immediately-invoked function expression
An immediately-invoked function expression (or IIFE, pronounced "iffy") is a JavaScript programming language idiom which produces a lexical scope using JavaScript's function scoping. Immediately-invoked function expressions can be used to avoid variable hoisting from within blocks, protect against polluting the global environment and simultaneously allow public access to methods while retaining privacy for variables defined within the function. This concept has been referred to as a self-executing anonymous function, but Ben Alman introduced the term IIFE as a more semantically accurate term for the idiom, shortly after its discussion arose on comp.lang.javascript.
has abstract
An immediately-invoked functio ...... arose on comp.lang.javascript.
@en
立即调用函数表达式(英文:immediately-invok ...... 匿名)函数”,但“立即调用函数表达式”是语义上最准确的术语。
@zh
Wikipage page ID
38,413,545
Wikipage revision ID
744,522,158
type
comment
An immediately-invoked functio ...... arose on comp.lang.javascript.
@en
立即调用函数表达式(英文:immediately-invok ...... 匿名)函数”,但“立即调用函数表达式”是语义上最准确的术语。
@zh
label
Immediately-invoked function expression
@en
立即调用函数表达式
@zh