I'm struggling to understand the syntax of this:
(function(abc, $, undefined) {
// some code
}(window.abc = window.abc || {}, jQuery ));
- What does undefined do?
- what does the window.abc = window.abc || {} do?
- If this is a self-invoking function, why does the bracket ) close not after the function code but after the second pair of brackets?
Many thanks