JavaScript is based on objects, not classes. It uses prototype inheritance, not classic inheritance.
JavaScript is flexible and easily extensible. As a result, there are many libraries that add classic JavaScript inheritance. However, using them, you run the risk of writing code that is difficult for most JavaScript programmers to execute.
Nosredna
source share