Simple javascript method issue
<p>I am trying to understand the different between the following codes..</p>

<pre><code>Select.prototype.create = function(){

codes1......

}

Search.prototype.create = function(){

codes2......
}
</code></pre>

<p>They both have different codes but the same method. I am not sure why and how it works. Can anyone helps me about it? Thanks alot.</p>
