Immediately-Invoked Function javascript

JavaScript
(() => {
  // statements
})();result = (function(a, b){
    return a - b;
})(100, 42);

console.log(result); // 58(() => {
  /* */
})()
(function() {
  /* */
})()

Source

Also in JavaScript: