Skip to content

Instantly share code, notes, and snippets.

@takaheraw
Created January 2, 2013 08:53
Show Gist options
  • Save takaheraw/4433121 to your computer and use it in GitHub Desktop.
Save takaheraw/4433121 to your computer and use it in GitHub Desktop.
var count = 0;
module.exports = {
say: function(name){
count++;
console.log('Hello ' + name);
},
getCount: function(){
return count;
},
resetCount: function(){
count = 0;
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment