Created
February 22, 2015 02:02
-
-
Save victorvhpg/bb96744f3458acd01307 to your computer and use it in GitHub Desktop.
modulo Poder
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
"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