Skip to content

Instantly share code, notes, and snippets.

@ArthurOliverB
Last active January 29, 2019 11:40
Show Gist options
  • Save ArthurOliverB/fd3114a5b2d01b86579f7890379c2b04 to your computer and use it in GitHub Desktop.
Save ArthurOliverB/fd3114a5b2d01b86579f7890379c2b04 to your computer and use it in GitHub Desktop.
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