-
-
Save parzibyte/93bbd351455ec532ca063d7fd2cde87c to your computer and use it in GitHub Desktop.
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
localStorage.setItem("nombre", "Luis Cabrera Benito"); | |
localStorage.setItem("edad", 123); | |
localStorage.setItem("recibirNotificaciones", true); | |
// Un objeto complejo | |
const mascota = { | |
nombre: "Maggie", | |
edad: 2, | |
amigos: ["Meca", "Guayaba", "Snowball"] | |
}; | |
localStorage.setItem("mascota", JSON.stringify(mascota)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment