Constructor question in javascript
<p>If I write two constructors like these below:</p>

<pre><code>Person(name, age) { 
    this.name = name;  
    this.age = age;  
    sayName = function() {  
        alert("hello");  
    };
}
</code></pre>

<p>and</p>

<pre><code>Person(name, age) { 
    this.name = name;  
    this.age = age;  
    this.sayName = function() {  
        alert("hello");  
    };
}
</code></pre>

<p>What is the difference? Does </p>

<blockquote>
  <p>sayName</p>
</blockquote>

<p>really mean something in the first code? Is it useful?</p>
