JS Core Part 1 - Delegation01 Mar 2017Delegation
__proto__, prototype chain, delegation
But very few people actually understand how it all works.
In this and the following posts, we will try to gain a better understanding of these topics through examples and code.
Imagine “Hal” asked “Dave” whether he can lend him some cash, say a million rupees. The conversation might go something like:
... read the whole story at zhirzh.github.io.
Hal: Hey Dave, can you give me a million rupees? Dave: I can't. I don't have a million rupees. Hal: Oh. :(