Hacker News new | past | comments | ask | show | jobs | submit login

The main difference in many cases is memory usage. When cloning in prototypal inheritance, you point back to the prototype's function, unlike classical inheritance where you are copying methods on every instantiation.



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

Search: