Skip to content

Instantly share code, notes, and snippets.

@heapwolf
Created September 18, 2010 18:58
Show Gist options
  • Select an option

  • Save heapwolf/585939 to your computer and use it in GitHub Desktop.

Select an option

Save heapwolf/585939 to your computer and use it in GitHub Desktop.
window.Number.prototype.minus = function(n) {
return (this - n);
};
window.Number.prototype.plus = function(n) {
return (this + n);
};
window.Number.prototype.times = function(n) {
return (this * n);
};
window.Number.prototype.dividedBy = function(n) {
return (this / n);
};
(200).plus(2).minus(1).times(10).dividedBy(2);
@heapwolf

Copy link
Copy Markdown
Author

this is a basic example, you could do something like this if your application is isolated as you described

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment