Skip to content
All lessons

Tech Insights· developer.mozilla.org

An IIFE (Immediately Invoked Function Expression) is a JavaScript function that runs as soon as it is defined.

From developer.mozilla.org

An IIFE (Immediately Invoked Function Expression) is an idiom in which a JavaScript function runs as soon as it is defined. It is also known as a self-executing anonymous function. The name IIFE is promoted by Ben Alman in his blog.

Shared by

Read on developer.mozilla.org
  • JavaScript

Book a call

Lessons like this one
shape how we build.

Tell us what you’re building. In one call, we’ll show you how our team would approach it.

Tell us what you’re building, and we’ll show you how we’d approach it.

Still prefer the good old email? Contact us