Simulate Inheritance in Javascript – Software Engineering Stack Exchange

I have the following code

var Scheme = function () {
this.prop1 = "A";
this.prop2 = "B";
}

var Scheme.prototype = {

doSomething (): function () {return this.prop1},
doSomethingElse (): function () {}

}

var myScheme = new Scheme ();

Now I want to simulate inheritance by creating a constructor function for an object that enhances the prototype of that object

var AllScheme = function () {

Schema.apply (this arguments);

};

ExtendedScheme = function () {

this.doSomething = function () {return this.prop2; }


};
ExtendedScheme.prototype = schema.prototype;

AllScheme.prototype = new ExtendedScheme ();

var myScheme2 = new AllScheme ();

This allows me to override mine do something Method for all objects using this ExtendedScheme prototype. However, I find this code hard to read and I'm pretty sure there is an easier way to achieve the same goal. How could that be?