What is the difference between these two options?
(function doSmth() { ... })(); (function doSmth() { ... }()); What is the difference between these two options?
(function doSmth() { ... })(); (function doSmth() { ... }()); 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.
Source: https://ru.stackoverflow.com/questions/502347/
All Articles