mdn/js/2_javascript_objects/1_object_prototypes

1_object_prototypes

dz / mdn / js / 2_javascript_objects / 1_object_prototypes

Summary

Object Prototypes

Node Tree

Nodes

prototype
content Prototype: Mechanism by which JS objects inherit features from one another.
children inheritance, object_prototype, prop_access, prototype_chain, setting, shadowing_prop

prototype_chain
content Prototype Chain: nested prototype objects, endeing with null.
parents prototype

prop_access
content Property Access: objhect, proto object, proto object of that, etc. search.
parents prototype

object_prototype
content Object Prototype
parents prototype

shadowing_prop
content Shadowing Property: redefined property in object gest found before property in prototype.
parents prototype

setting
content Setting
children object_create, via_constructor
parents prototype

via_constructor
content Set via constructor
children object_assign
parents setting

object_create
content object.create()
parents setting

object_assign
content object.assign()
parents via_constructor

own_property
content Own property: proerpties that are defined directly in the object

inheritance
content Inheritance
parents prototype