why immediately invoked function code example
Example: javascript Immediately Invoked Function Expression
result = (function(a, b){
return a - b;
})(100, 42);
console.log(result); // 58
result = (function(a, b){
return a - b;
})(100, 42);
console.log(result); // 58