Both
(function () {
// do something
)();
and
(function () {
// do something
());
work fine. I wonder what is the conventional way to define an IIFE? And why?
Both
(function () {
// do something
)();
and
(function () {
// do something
());
work fine. I wonder what is the conventional way to define an IIFE? And why?