how to call a function from a self-invoking function in javascript code example Example: self invoking function javascript es6 (() => { console.log('Ok'); })()