Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

There is no zelda.prototype. It should have been:

  Game.prototype.heartIt = function() { 
    console.log( "I heart " + this.title ); 
  };
See: http://jsfiddle.net/a9asJ/1/


Thank you, corrected!




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: