Javascript Number plus(n)
Number.prototype.plus = function(n){ return this+n;/*from w w w. j a v a 2 s . c o m*/ } Number.prototype.minus = function(n){ return this-n; } //test console.log((5).plus(5).minus(2));