Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
eurasiantiger
on May 3, 2022
|
parent
|
context
|
favorite
| on:
JavaScript quiz that may confuse you
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: