Are these ways of writing function prototype equivalent?
<p>I have always used to write function prototype declaration in this way:</p>

<pre><code>var O = function () {};
O.prototype.fn = function () {}
</code></pre>

<p>But Some developer write in this way:</p>

<pre><code>var O = function () {};
O.prototype.fn = function fn () {}
</code></pre>

<p>Are these way equivalent? If not, what is the advantage for using the second way?</p>

<pre><code>var O = function () {};
O.prototype.fn = function fn () {}
</code></pre>
