Created
January 2, 2013 08:53
-
-
Save takaheraw/4433121 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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