Created
December 26, 2017 05:32
-
-
Save PavanKu/d9be41638e67c4c4ae7138a7997e02f0 to your computer and use it in GitHub Desktop.
IIFE (Immediately Invoked Function Expression)
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
(function(){ | |
console.log("Anonymous function invocation"); | |
console.log(this === window); | |
})(); | |
// Prints true on console |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment