How can you create a function that will invoke immediately code example
Example 1: immediate invoke function js
(() => {
// statements
})();
Example 2: immediately invoked function expression
(function () {
statements
})();
(() => {
// statements
})();
(function () {
statements
})();