MDN wants to learn about developers like you:

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: tapa8728, bIgBV, rolfedh, lpiot, klez, Andrew_Pfeiffer
 Last updated by: tapa8728,