Immediately invoked function expression


Topic history | v1 (current) | created by jjones

Details

Immediately invoked function expression

| created by jjones | Add resource "Technique: Immediately-Invoked Function Expression for Metaprogramming"
Title
Immediately invoked function expression
Description
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.
Link
https://en.wikipedia.org/?curid=38413545

authors

This topic has no history of related authors.