Munawwar / codepasta-comments

1 stars 0 forks source link

2015/03/01/prototype-and-inheritance.html #2

Open Munawwar opened 1 year ago

Munawwar commented 1 year ago

Written on 03/09/2013 09:49:02

URL: https://www.codepasta.com/2015/03/01/prototype-and-inheritance.html

Munawwar commented 1 year ago

Comment written by droozh on 09/07/2016 18:04:06

Thanx, the best on the subject. Nice link diagrams.

Munawwar commented 1 year ago

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.

Munawwar commented 1 year ago

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.

Munawwar commented 1 year ago

Comment written by i11u5i0n on 09/11/2016 16:18:03

I think the extra knowledge does not harm.

Munawwar commented 1 year ago

Note to readers: I migrated the comments from Disqus to Github issues / utteranc.es