javascript - iife with argument
protect global variables in your code
by Željko Szep
JavaScript
(function test(x) {
x.console.log("window is now x");
})(window)
by Željko Szep
(function test(x) {
x.console.log("window is now x");
})(window)