JavaScript: What the heck is an Immediately-Invoked Function Expression?
Brandon Morelli

Very nice explanation of why IIFE looks like how it looks. As for the WHY part of IIFE, there are some other valid real-life use cases including closures and variable aliasing. This article covers a few more use cases:

Like what you read? Give Ahmad Ferdous Bin Alam a round of applause.

From a quick cheer to a standing ovation, clap to show how much you enjoyed this story.