Last active
January 29, 2019 11:40
-
-
Save ArthurOliverB/fd3114a5b2d01b86579f7890379c2b04 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
function Animal(nome, filo) { | |
this.nome = nome | |
this.filo = filo | |
this.apresentar = function() { | |
console.log(`Nome: ${this.nome}\nFilo: ${this.filo}`); | |
} | |
} | |
let cachorro = new Animal("Cachorro", "Cordados"); | |
cachorro.apresentar() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment