Untitled diff

Created Diff never expires
17 removals
Lines
Total
Removed
Words
Total
Removed
To continue using this feature, upgrade to
Diffchecker logo
Diffchecker Pro
23 lines
11 additions
Lines
Total
Added
Words
Total
Added
To continue using this feature, upgrade to
Diffchecker logo
Diffchecker Pro
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