MDN’s new design is in Beta! A sneak peek:

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

Learn more

Learn about it

  • Quick example (at the end of the "Functions" section, right before "Custom objects")

General knowledge

Document Tags and Contributors

 Contributors to this page: bIgBV, rolfedh, lpiot, klez, Andrew_Pfeiffer
 Last updated by: bIgBV,