-
-
Save ankitamasand/6305a74b672f1c1cd724fca03b1df22e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var TeslaModelSPrototype = /** @class */ (function () { | |
function TeslaModelSPrototype(l, w, wb, sc) { | |
this.length = l; | |
this.width = w; | |
this.wheelbase = wb; | |
this.seatingCapacity = sc; | |
} | |
TeslaModelSPrototype.prototype.getTyrePressure = function () { | |
var tyrePressure = 20; // Evaluated after doing a few complex computations! | |
return tyrePressure; | |
}; | |
TeslaModelSPrototype.prototype.getRemCharging = function () { | |
var remCharging = 20; // Evaluated after doing a few complex computations! | |
return remCharging; | |
}; | |
return TeslaModelSPrototype; | |
}()); | |
var teslaObj = new TeslaModelSPrototype(196, 86, 116, 4); | |
console.log('Tyre Pressure', teslaObj.getTyrePressure()); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment