Skip to content

Instantly share code, notes, and snippets.

@austinbv
Created June 24, 2012 00:29
Show Gist options
  • Save austinbv/2980715 to your computer and use it in GitHub Desktop.
Save austinbv/2980715 to your computer and use it in GitHub Desktop.
> var Person = require('./person');
> var p = new Person.Person();
> p
{ name: 'austin', age: 0 }
var Person = module.exports.Person = function() {
this.name = "austin";
this.age = 0;
};
Person.prototype.haveBirthday = function(){
this.age += 1;
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment