how call function immediately in js code example
Example 1: Immediately-Invoked Function javascript
(() => {
/* */
})()
Example 2: Immediately-Invoked Function javascript
(function() {
/* */
})()
(() => {
/* */
})()
(function() {
/* */
})()