IIFE in javascript

(function () {
    console.log('hi)
})();

(() => {
    console.log('hi)
})();

(async () => {
  console.log('hi)
})();

Welcome to the forum

The IIFE’s won’t work, because the strings are missing the closing single quote mark.

Happy coding

ooh hey thank you ,for your response.

1 Like