Inheritance in javascript works based on prototype delegations.
Prototypes is simple inheritance model that works based on delegation.
Class layer in javascript uses prototype under the hood.
read more at: https://medium.com/@pedramphp/javascript-prototypes-e9afe15e3990
Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE STEEM!
If you enjoyed what you read here, create your account today and start earning FREE STEEM!