marclundgren
8/18/2016 - 12:53 AM

iifee-functions.js

// 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);