Skip to content

Instantly share code, notes, and snippets.

@lmuzquiz
Created December 14, 2018 04:45
Show Gist options
  • Save lmuzquiz/da9e9fc59819afb3832f108427296425 to your computer and use it in GitHub Desktop.
Save lmuzquiz/da9e9fc59819afb3832f108427296425 to your computer and use it in GitHub Desktop.
Ejemplo básico de un objeto de javascript
var Daniela = {
// un array literal
images: ["rostro.jpg", "perfil.jpg", "corriendo.jpg", "bailando.jpg"],
coord: { // un objeto anidado literal
lat: 25.6866,
long: 100.3161
},
edad: function() { // código de
// la función aquí
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment