JavaScript Introducing ES2015 Classes Structure of Class

jlampstack
jlampstack
17,752 Points

In Simple Terms, what does prototype base language mean?

I've googled this but what I find is confusing as hell. People write essays on the explanation of this topic, which is mind-boggling.

Can anyone explain in SIMPLEST TERMS possible, what a prototype language is?

Thanks in advance =)

1 Answer

' When it comes to inheritance, JavaScript only has one construct: objects. Each object has a private property which holds a link to another object called its prototype. That prototype object has a prototype of its own, and so on until an object is reached with null as its prototype. By definition, null has no prototype, and acts as the final link in this prototype chain. '

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Inheritance_and_the_prototype_chain