Untitled diff

Created Diff never expires
16 removals
23 lines
15 additions
16 lines
"use strict";
"use strict";

var Multiply = (function () {
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
function Multiply(a, b) {

this.a = a;
var Multiply = function () {
this.b = b;
function Multiply(a, b) {
}
_classCallCheck(this, Multiply);
Multiply.prototype.result = function () {

return this.a * this.b;
this.a = a;
};
this.b = b;
return Multiply;
}
}());

Multiply.prototype.result = function result() {
return this.a * this.b;
};

return Multiply;
}();

var multiply = new Multiply(2, 3);
var multiply = new Multiply(2, 3);
console.log(multiply.a);
console.log(multiply.a);
console.log(multiply.b);
console.log(multiply.b);
console.log(multiply.result());
console.log(multiply.result());
//# sourceMappingURL=Multiply.js.map