Issue with javascript inheritance using function prototype
<p>I want to use inheritance concept in js, so what i did is</p>

<pre><code>function myGarage(x) {
        var _x = x;
        Object.defineProperty(this, "BenZ", {
            get: function () {
                return _x;
            },
            set: function (value) {
                _x = value;
            },
            enumerable: true,
            configurable: true
        });
    }
    myGarage.prototype = new MyCar();
    function MyCar() {
     var _x =0;
        Object.defineProperty(this, "Audi", {
            get: function () {
                return _x;
            },
            set: function (value) {
                _x = value;
            },
            enumerable: true,
            configurable: true
        });
    }
</code></pre>

<p>After this i created there instance for <code>myGarage</code>.</p>

<pre><code>        var g1 = new myGarage(true);
        var g2 = new myGarage(false);
        var g3 = new myGarage("null");
</code></pre>

<p>The problem here is when i set <code>g1.Audi = 10;</code> all other instance of <code>myGarage</code>'s Audi  will hold the sample value </p>

<p>(eg)</p>

<pre><code>    g1.Audi = 10;
    var a = g2.Audi // a is 10
    var b = g3.Audi; // b is 10
</code></pre>

<p>but i set the value to g1.</p>

<p>what i need is other instance must hold the default value or undefined</p>
