Skip to content

Instantly share code, notes, and snippets.

@colevandersWands
Created April 10, 2018 11:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save colevandersWands/5861e8655c9403adf914f5a11bafa3b0 to your computer and use it in GitHub Desktop.
Save colevandersWands/5861e8655c9403adf914f5a11bafa3b0 to your computer and use it in GitHub Desktop.
let number = {
value: 0,
decrement: function() {
this.value = this.value - 1;
return this.value + 1;
},
increment: function() {
this.value = this.value + 1;
return this.value -1;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment