You are viewing a single comment's thread from:

RE: Object Creation and Manipulation Functions in JavaScript

in #javascript7 years ago (edited)

Correct, __proto__ is not a part of the specification. But still, we can use getPrototypeOfwhich does the same. So in your example:
Object.getPrototypeOf(pluto) === dog

Sort:  

Exactly. The new functions make those old mechanisms unnecessary, and I think they look ugly with all those underlines.

I think the major advantage of this "proto" property is the key role in javascript property delegation mechanism learning process, as we can quickly navigate prototype chain objects using it. Nothing more.

Coin Marketplace

STEEM 0.18
TRX 0.16
JST 0.029
BTC 62460.04
ETH 2435.03
USDT 1.00
SBD 2.65