What is the difference between these two options?

(function doSmth() { ... })(); (function doSmth() { ... }()); 
  • one
    there is no difference between the options - Grundy

1 answer 1

These two options are function expressions that are immediately executed.

And the only difference is the order of the brackets. More they are no different.