DEV Community

Discussion on: What are Javascript's IIFE?

Collapse
 
brujath profile image
brujath • Edited

There's also immediately invoked object expression

({
init: function () {
console.log("Hi!")
}
}).init();

Collapse
 
damcosset profile image
Damien Cosset

I honestly didn't know that was a thing but it makes sense! IIOE is kinda cool :D

Thanks!