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

    Dog.prototype = new Animal()
This is nonsensical, it is assigning an object instance into a prototype.

    Dog.prototype = Animal
would make sense.


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

Search: