Javascript Number addition(y)

Description

Javascript Number addition(y)


/* Constructor */
function Number(val) {
  this.val = val;//from   www  . j  a v  a2 s.  c  o m
}

// class methods
Number.prototype.addition = function(y) {
  return this.val + y;
};

module.exports = Number;



PreviousNext

Related