Created
November 5, 2015 06:39
-
-
Save aonomike/1099fd7572d1cd567d55 to your computer and use it in GitHub Desktop.
Immediately Invoked Function Expression in Javascript - (function(){..})()
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
//Test Function showing the use of iffe (Immediately Invoked Function Expression ) in javascript . | |
//The function executes immediately after it’s created. | |
var myVariable; | |
( | |
function(myParameter){ | |
alert(myParameter) | |
} | |
)(myVariable); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment