Why doesnt this javascript inheritance work?
<p>Im trying to get my head around javascript inheritance and this code doesnt work cant see why:</p>

<pre><code>function Animal(){

  this.hasfur = true;

}

function Cat(){

  this.sound = "Meow";

}

$(document).ready(function(){

   Cat.protptype = new Animal();

  var myCat = new Cat();

  console.log(myCat.hasfur);


}
</code></pre>

<p>The console comes out with undefined. But I thought that when I access myCat.hasfur it should look at the prototype of cat which is vehicle and then look at that property...?</p>
