immediate invoke function js

JavaScript
(function () {
    statements
})();(() => {
  // statements
})();
Source

Also in JavaScript: