idev0085 / react-boilerplate

0 stars 0 forks source link

Prototype in javascript #128

Open idev0085 opened 1 year ago

idev0085 commented 1 year ago

Every object in JavaScript has a built-in property, which is called its prototype. The prototype is itself an object, so the prototype will have its own prototype, making what's called a prototype chain. The chain ends when we reach a prototype that has null for its own prototype.

Note: The property of an object that points to its prototype is not called prototype. Its name is not standard, but in practice all browsers use [proto]