Inheritance is handled differently in JavaScript than it is in many other programming languages. The object system in JavaScript is built on a prototype rather than a class. Objects are nothing more than a set of value pairs and a name. When it comes to inheritance, there is just one construct in JavaScript: objects. Each object contains a private property that has a connection to another object known as the object's prototype.