Today I Learned

hashrocket A Hashrocket project

IIFE is an immediately invoked function expression

Y'all have seen this before.

(function(myVar) {

But did you know the name?

Immediately Invoked Function Expression


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

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.