Skip to main content Accessibility Feedback


Used when you want your code to run immediately, but want to keep all of your variables and functions out of the global scope to avoiding conflicts. Stands for Immediately Invoked Function Expression.

Add your code inside the IIFE.

 * Immediately Invoked Function Expression Boilerplate
 * (c) 2019 Chris Ferdinandi, MIT License,
;(function () {

    'use strict';

    // Code goes here...