Jquery plugin:how to declare functions with different syntax
<p>I am very new to jquery.When I go through the sample jquery plugins, I noticed variety of function declaration syntax.Those are follows:</p>

<pre><code>(function($){
  function function_name1()
  {
      //function body 
  }

  var _function_name2  = function(options){
      //function body 
  };

  $.fn.function_name3 = { 
             function_name4:function(){ //function body },
             //function body 
  };

  $.fn.function_name5 = function(){
             //function body 
  }
}(jQuery));
</code></pre>

<p>I am only aware of the <code>function_name5</code> syntax.So please help me to find out the difference between the others too.Thanks in advance.</p>