How Object Oriented works in JavaScript

in javascript •  8 years ago 

Learn JavaScript Prototypes

What are Prototypes in JavaScript?

Prototypes are not classes, Inheritance in javascript works based on prototype delegations.

Prototypes are simple inheritance model that works based on delegation.

Class layer in javascript uses prototype under the hood.

Classes have been added because developers are used to classes and confused by prototypes but in reality, prototypes are
easier concept than classes.

Read more:
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!