Nodejs Utililty Methods Number Sum

List of utility methods to do Number Sum

Description

The list of methods to do Number Sum are organized into topic(s).

Method

sum( number )
Number.prototype.sum = function ( number ) {
    return this + Number(number);
};
var one = 1;
console.log( one.sum(1) );
console.log( one.sum(" 3.04 ") );
console.log( one.sum("w") );
sum(a)
Number.prototype.sum = function (a) {
    return a = a || 0,this + a;
num = 4;
num.sum(4).sum(5).sum(6);
sum(num)
Number.prototype.sum = function(num) {
    return this + num;
};