Skip to content

Instantly share code, notes, and snippets.

@marclundgren
Created August 18, 2016 00:53
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 marclundgren/05e420437fea7d381434d3552a94e5a6 to your computer and use it in GitHub Desktop.
Save marclundgren/05e420437fea7d381434d3552a94e5a6 to your computer and use it in GitHub Desktop.
// IFEE
// https://developer.mozilla.org/en-US/docs/Web/JavaScript/A_re-introduction_to_JavaScript#Functions
var message = 'hello IFEE';
(function(arg1) {
console.log(arg1);
});
(function(arg1) {
console.log(arg1);
})(message);
// this works?
(function(arg1) {
console.log(arg1 + ' this works?');
})(message)
(message);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment