DEV Community

Discussion on: What is IIFE in JavaScript?

Collapse
 
caubeen profile image
caubeen

Another very common reason to use this is with async/await, since await doesn't work globally, only under an async function.