Last active
February 16, 2018 13:27
-
-
Save munkacsitomi/c35935848037d822e0263cd7a802c701 to your computer and use it in GitHub Desktop.
Self-Executing Anonymous Function / IIFE
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// IIFE in ES5 | |
(function() { | |
console.log('IIFE ES5'); | |
})() | |
// IIFE in ES6 | |
(() => { | |
console.log('IIFE ES6'); | |
})() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment