return statement in a function as class
<p>I am confused about the return statement in a function that serves as a class. See the example code below:</p>

<pre><code>&lt;html&gt;
&lt;body&gt;

&lt;script type="text/javascript"&gt;
function test() {
    this.abc = 'def';
    return 3;
}

var mytest = new test(); 

document.write(mytest + ', ' + (typeof mytest) + ', ' + mytest.abc);

&lt;/script&gt;

&lt;/body&gt;
&lt;/html&gt;
</code></pre>

<p>The code out put: [object Object], object, def.</p>

<p>Here is my question. I wrote 'return 3' in the test() function. Is this statement ignored when 'new test()' is called?</p>

<p>Thanks.</p>
