Skip to content

Instantly share code, notes, and snippets.

@victorvhpg
Created February 22, 2015 02:02
Show Gist options
  • Save victorvhpg/bb96744f3458acd01307 to your computer and use it in GitHub Desktop.
Save victorvhpg/bb96744f3458acd01307 to your computer and use it in GitHub Desktop.
modulo Poder
"use strict";
//modulo Poder
var Poder = function(tipo) {
this.tipo = tipo;
};
Poder.prototype = {
constructor: Poder,
soltarPoder: function() {
console.log("[Poder.soltarPoder]: " + this.tipo);
}
};
//exportando o constructor Poder
module.exports = Poder;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment