I come from "old school" Javascript functions which I don't even need to demonstrate.
- What is the advantages of the following style?
- Is this self executing?
- How is this even called?
- What is the point of
($, reportGroupDataManager, data)
? - What is this coding style called?
Where can I learn how to code this style , where and how?
(function(jQ, dM, data) { var self = this; //var $container = jQ('#menu-tree'), // initializePage = function(resources) { // console.log('in init'); // //var resources = "blah"; // }; var initializePage = function () { console.log('in init'); }; dM.getResources() .done(initializePage); })($, reportGroupDataManager, data);