Created
March 14, 2017 15:51
-
-
Save aduartem/89d2e2e846d4ba4cd61504faf013e45f to your computer and use it in GitHub Desktop.
Objeto Perro
This file contains 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
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