whats wrong with my below code? Im getting error Object # has no method 'subtract'.
function result() {
}
result.prototype.add = function (a,b) {
var sub = this.subtract(a,b);
}
result.prototype.subtract = function (a,b) {
return a-b;
}
module.exports = result;