js function expression (IIFE) code example
Example 1: Immediately-Invoked Function javascript
(() => {
/* */
})()
Example 2: Immediately-Invoked Function javascript
(function() {
/* */
})()
(() => {
/* */
})()
(function() {
/* */
})()