I get the function code in the alert box, why is this?
<p>When I run this script I get the speak function code in the alert box.  It should be "Hello!" not function() {alert("Hello!")}; .  I use alert because I seem to like it better over console.log for learning.  The script works fine without the speak function.</p>

<pre><code>function person(firstname,lastname,age,eyecolor) {
  this.firstname=firstname;
  this.lastname=lastname;
  this.age=age;
  this.eyecolor=eyecolor;
  this.newlastname=newlastname;
  this.speak=function(){alert("Hello!")};
}

var myFather=new person("John", "Doe", 45, "blue");
var myMother=new person("Sally","Rally", 48,"green");

function newlastname(new_lastname) {
  this.lastname=new_lastname;
}

myMother.newlastname("Doe");
alert(myMother.lastname);
alert(myMother.speak);
</code></pre>
