Created
September 16, 2019 18:28
-
-
Save yogeshkoli/1cb1c348b0f82b72ca243eeae5ac87a9 to your computer and use it in GitHub Desktop.
iTech Empires Tutorial
This file contains hidden or 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 Calculation = /** @class */ (function () { | |
function Calculation(x, y) { | |
this.x = x; | |
this.y = y; | |
} | |
Calculation.prototype.add = function () { | |
console.log(this.x + this.y); | |
}; | |
return Calculation; | |
}()); | |
var calc = new Calculation(10, 20); | |
calc.add(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment