Why define an anonymous function and pass it jQuery as the argument?

The two blocks of code you have shown are dramatically different in when and why they execute. They are not exclusive of each other. They do not serve the same purpose. JavaScript Modules This is a “JavaScript Module” pattern, implemented with an immediately invoking function. http://addyosmani.com/resources/essentialjsdesignpatterns/book/#modulepatternjavascript http://www.adequatelygood.com/2010/3/JavaScript-Module-Pattern-In-Depth The purpose of this code is to provide … Read more

techhipbettruvabetnorabahisbahis forumuedueduedusedueduseduedueduseduedu