How Object Oriented works in JavaScript

in #javascript7 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

Coin Marketplace

STEEM 0.20
TRX 0.12
JST 0.030
BTC 61907.80
ETH 3418.05
USDT 1.00
SBD 2.51