Skip to content

Instantly share code, notes, and snippets.

@Cfeusier
Last active June 14, 2017 07:50
Show Gist options
  • Select an option

  • Save Cfeusier/601b17d046f3ea3d5b82 to your computer and use it in GitHub Desktop.

Select an option

Save Cfeusier/601b17d046f3ea3d5b82 to your computer and use it in GitHub Desktop.
Example of the Pseudo-Classical 'Class' Pattern in JavaScript
var Example = function() {
this.extraProp1 = "Example Property Value";
};
Example.prototype.exampleGet = function() {
return this.extraProp1;
};
Example.prototype.exampleSet = function(value) {
this.extraProp1 = value;
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment