Javascript Number plus()

Description

Javascript Number plus()


Number.prototype.plus = function() {
    if ((arguments.length == 0) || (arguments.length > 1) || isNaN(arguments[0]))return;
    return Number(this.toString()) + Number(arguments[0].toString());
};



PreviousNext

Related