An immediately invoked function expression is a function expression that is invoked immediately after it is created.
An immediately invoked function expression (IIFE) is a function expression called as soon as it is created. Parentheses around the function expression make its role clear to the JavaScript parser. section 5.1.1
Listing 5.2 Function declarations and function expressions
Functional Programming in JavaScriptAn immediately invoked function expression is a function expression that is executed as soon as it is defined, typically to create an isolated scope.
function expressionkind of · A function expression is an expression that creates a function value, which can be assigned, passed, or used within another expression.
module patternused by · The module pattern is a software design pattern that encapsulates implementation details and state while exposing a controlled public interface.
scopeproduces · Scope is the region of a program in which names are visible and can be resolved to their bindings according to the language’s rules.
expressionkind of · An expression is a syntactically formed combination of values, names, operators, or other terms that denotes or evaluates to a value or result.
modularityused by · Modularity is the organization of a system into separable components with distinct responsibilities and defined interactions.
modulealternative to · A module is a cohesive unit of code or computation that groups related functionality within a larger system and defines a scope or boundary for organizing or sharing it.
This explainer was generated by Manning's knowledge graph from the text of Secrets of the JavaScript Ninja, Third Edition. The section links point to the parts of the book it draws on.