I am intermediate JavaScript developer and I have a question regarding the following IIFE construction:
var myModule = (function () {
})(this);
I see a lot of frameworks using this approach but it doesn't make sense for me the reason of the "this" object being passed to the invoked function. What is the goal of the "this" object passed to the function, once the function doesn't declare any arguments to be received?