Confusion regarding the constructor property of the string
<p>I have been following javascript tutorial from www.w3school.com and while reading one of the examples i have got one question in my mind, the code is as follows:</p>

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

&lt;script type="text/javascript"&gt;

 var txt =new String ("Hello World!");
 document.write(txt.constructor);

 &lt;/script&gt;

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

<p>Now, iam getting in response of this code is :</p>

<pre><code>function String() { [native code] } 
</code></pre>

<p>However, according to me the constructor must have a parameter in it somewhat like this:</p>

<pre><code>function string(value){}
</code></pre>

<p>Can anybody please tell me why it is returning the constructor with no parameter.</p>
