Skip to content

Instantly share code, notes, and snippets.

@ruzz311
Created December 1, 2011 05:57
Show Gist options
  • Save ruzz311/1414127 to your computer and use it in GitHub Desktop.
Save ruzz311/1414127 to your computer and use it in GitHub Desktop.
An example of a simple module
var PI = Math.PI;
exports.area = function (r) {
return PI * r * r;
};
exports.circumference = function (r) {
return 2 * PI * r;
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment