Skip to content

Instantly share code, notes, and snippets.

@mkuklis
Created November 15, 2011 00:13
Show Gist options
  • Save mkuklis/1365657 to your computer and use it in GitHub Desktop.
Save mkuklis/1365657 to your computer and use it in GitHub Desktop.
Number.prototype.plus = function(value) {
return this + value;
}
Number.prototype.minus = function(value) {
return this - value;
}
var a = (5).plus(3).minus(6); // 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment