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

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: https://blog.mariusschulz.com/2016/01/19/use-cases-for-javascripts-iifes

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.