View Single Post
  #1 (permalink)  
Old November 6th, 2011, 03:08 PM
irProject irProject is offline
Friend of Wrox
Points: 742, Level: 10
Points: 742, Level: 10 Points: 742, Level: 10 Points: 742, Level: 10
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Nov 2009
Location: Tehran, Iran
Posts: 156
Thanks: 13
Thanked 16 Times in 16 Posts
Default what is the meaning of (function(a){...})(window);

Hello,
somewhere i've seen this type of javascript codes:


Code:
(function(a){
// some code here ...
})(window);

or

(function(){
// some code here ...
})(jQuery);

or

(function(){
//some code here...
})();
what does these codes do?
Reply With Quote