Open Munawwar opened 1 year ago
Comment written by droozh on 09/07/2016 18:04:06
Thanx, the best on the subject. Nice link diagrams.
Comment written by Munawwar on 09/07/2016 20:33:47
I think this article is almost (or soon going to be) useless after ES6 classes. One doesn't need to know in-depth about how inheritance is done internally. A developer now just needs to know the difference between adding a property/method to the prototype VS adding a property onto the instance.
Comment written by Munawwar on 09/07/2016 20:46:55
Hmm..I found something inaccurate about one sentence in section 2 of my article :) - "So when we do a 'obj2.prototype', JavaScript uses this hidden link to find it's constructor's prototype.". One can't do 'object.prototype'..only function has prototype. I corrected that sentence.
Comment written by i11u5i0n on 09/11/2016 16:18:03
I think the extra knowledge does not harm.
Note to readers: I migrated the comments from Disqus to Github issues / utteranc.es
Written on 03/09/2013 09:49:02
URL: https://www.codepasta.com/2015/03/01/prototype-and-inheritance.html