how to give arrow function in iife javascript code example Example: iife js arrow function (() => { /* */ })() or (function() { /* */ })()