Skip to content

Instantly share code, notes, and snippets.

@aonomike
Created November 5, 2015 06:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aonomike/1099fd7572d1cd567d55 to your computer and use it in GitHub Desktop.
Save aonomike/1099fd7572d1cd567d55 to your computer and use it in GitHub Desktop.
Immediately Invoked Function Expression in Javascript - (function(){..})()
//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