Skip to content

Instantly share code, notes, and snippets.

@aduartem
Created March 14, 2017 15:51
Show Gist options
  • Save aduartem/89d2e2e846d4ba4cd61504faf013e45f to your computer and use it in GitHub Desktop.
Save aduartem/89d2e2e846d4ba4cd61504faf013e45f to your computer and use it in GitHub Desktop.
Objeto Perro
var Perro = {
nombre: '',
raza: '',
constructor: function(nombre, raza){
this.nombre = nombre;
this.raza = raza;
},
getNombre: function(){
return this.nombre;
},
setNombre: function(nombre){
this.nombre = nombre;
},
getRaza: function(){
return this.raza;
},
setRaza: function(raza){
this.raza = raza;
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment