Javascript String isPositive(limit)

Description

Javascript String isPositive(limit)


String.prototype.isLengthGreaterThan = function(limit) {
  return this.length > limit;
}

console.log("john".isLengthGreaterThan(3));

Number.prototype.isPositive = function() {
  return this > 0;
}



PreviousNext

Related