Skip to content

Instantly share code, notes, and snippets.

@springmeyer
Created August 10, 2018 23:14
Embed
What would you like to do?
// generic code
// interface
var Coord = function() {
this.one = 'one';
};
Coord.two = function() {
return 'two';
};
Coord.prototype.two = function() {
return 'two';
};
// usage
var coord_instance = new Coord();
console.log(Coord.two())
//console.log(coord_instance.one);
console.log(coord_instance.two());
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment