DEV Community

loading...

Discussion on: What are Javascript's IIFE?

Collapse
brujath profile image
brujath

There's also immediately invoked object expression

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

Collapse
damcosset profile image
Damien Cosset Author

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

Thanks!