what 's the difference about adding the new method to an object in javascript?
<p>There are two way to add the method to an object in javascript,
What 's the differnce about the below ways?</p>

<h1>1</h1>

<p><code>var o = new Object(); 
o.method = function(){}
</code> </p>

<h1>2</h1>

<p><code>var o = new Object(); 
o.prototype.method = function(){}
</code></p>
