self invoking function code example
Example 1: self invoked function javascript
(function(){
//Bunch of code...
})();
Example 2: self invoking function javascript es6
(() => {
console.log('Ok');
})()
(function(){
//Bunch of code...
})();
(() => {
console.log('Ok');
})()