Self-executing anonymous functions
Here's how you can have an anonymous function invoke itself:
(function() {
console.log('self-executing anonymous function');
}());
Written by Montana Flynn
Related protips
2 Responses
Also known as, Immediately Invoked Function Expressions (IIFE).
over 1 year ago
·
I, for one, welcome our Immediately Invoked Function Expression Overlords.
over 1 year ago
·
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Javascript
Authors
Related Tags
#javascript
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#