Skip to content

Instantly share code, notes, and snippets.

@epicserve
Created March 17, 2016 13:47
Show Gist options
  • Save epicserve/7e23f1141805cde1b920 to your computer and use it in GitHub Desktop.
Save epicserve/7e23f1141805cde1b920 to your computer and use it in GitHub Desktop.
function Thing(name) {
this.thing = name;
}
Thing.prototype = {
get_thing: function() {
return this.thing;
},
set_thing: function(name) {
this.thing = name;
}
};
new Thing('foo');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment