
IIFE’s
In JavaScript, we can use what are called Immediately Invoked Function Expression, or IIFEs. These are helpful for having functions run immediately when they are defined, such as when initializing an application. Let’s imagine we have the following function… Normally, we would run this function by calling it as follows…
