immediate invoke function js
snippet in javascript

immediate invoke function js

user7152

(function () {
    statements
})();

immediate invoke function js

user4681

(() => {
  // statements
})();