1

Both

(function () {
    // do something
)();

and

(function () {
    // do something
());

work fine. I wonder what is the conventional way to define an IIFE? And why?

rishat
  • 8,206
  • 4
  • 44
  • 69
  • There is no difference. This is a duplicate and I'll close it as soon as I can find the right question via the always infuriatingly inadequate SO search. – Pointy Aug 17 '15 at 05:14

0 Answers0