Object prototype in JS
Hello, I was reading a bit about object prototype. From what I've understood, it's just a chain where objects kind of inherit the properties of other objects.
So basically, every objects we create already have some properties, so I guess we have a "super" object or something like that from which all the objects "inherit" from? Why is this prototype chain important and is object prototype useful/important?
So basically, every objects we create already have some properties, so I guess we have a "super" object or something like that from which all the objects "inherit" from? Why is this prototype chain important and is object prototype useful/important?
