Today I Learned

hashrocket A Hashrocket project

IIFE is an immediately invoked function expression

Y'all have seen this before.

(function(myVar) {
  console.log(myVar);
})("abc");

But did you know the name?

Immediately Invoked Function Expression

IIFE

And its got more variations than the above which you can see in this 2010 blog post.

http://benalman.com/news/2010/11/immediately-invoked-function-expression/

See More #javascript TILs
Looking for help? At Hashrocket, our JavaScript experts launch scalable, performant apps on the Web, Android and iOS. Contact us and find out how we can help you.