Skip to content

Instantly share code, notes, and snippets.

View yogeshkoli's full-sized avatar
🏠
Working from home

Yogesh Koli yogeshkoli

🏠
Working from home
View GitHub Profile
class Calculation {
constructor(private x: number, private y: number) {}
add() {
console.log(this.x + this.y);
}
}
let calc = new Calculation(10, 20);
@yogeshkoli
yogeshkoli / Calculation.js
Created September 16, 2019 18:28
iTech Empires Tutorial
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;
}());