8 ms·
Maybe this could help: https://github.com/getify/You-Dont-Know-JS/blob/master/this%20&%20object%20prototypes/README.md#you-dont-know-js-this--object-prototypes
by Ghostium 10y ago
Maybe this could help: https://github.com/getify/You-Dont-Know-JS/blob/master/this%20&%20object%20prototypes/README.md#you-dont-know-js-this--object-prototypes https://github.com/getify/You-Dont-Know-JS/blob/master/this%...
- shp0ngle 10y agoYeah, I always understand "how" from books like this, but not "why". Why is javascript like that? More to the point, what is the reason for prototype-based inheritance, what is its benefit, what more can you do with it than with C++/java, where does it make life easier.