two kind of javascript functions?
<p>I'm new in javascript. </p>

<p>I want to what's the difference between this </p>

<pre><code> function aa(){
    //code
}

    function bb(){
      //code
    }
</code></pre>

<p>and this </p>

<pre><code>var b = {
        aa : function (){
    //code
      },
       bb: function () {
        //code
   }
};
</code></pre>

<p>I know about function. but I don't know about the another one. </p>

<p>What's it called and what's differences?? which one is better and faster??</p>

<p>Thanks in advance.</p>
