Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
jmaicher
on April 30, 2012
|
parent
|
context
|
favorite
| on:
OO JS in 15mins or Less
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/
mdgrech23
on April 30, 2012
[–]
Thank you, corrected!
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: