Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Created Feb 25, 2019
Embed
What would you like to do?
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