This question has already been answered:
- Why in jQuery are used the arguments in IIFE 2 responses
Hello, I'm new to JS. I decided to look into the jquery source and the question literally arose on the first function:
(function( window, undefined ) { [...] window.jQuery = window.$ = jQuery; })(window); And the construction is not clear ( )(window) what is it?
windowis an argument to anonymous and self-calling function - mix