-
-
Save parzibyte/fde514a7f697a65365d30f8dfdb1ceee 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
if(localStorage.hasOwnProperty("edad")){ | |
// Perfecto, ya había un elemento con el id edad | |
} | |
// Otra forma: | |
if(localStorage.edad){ | |
// Ok, hay edad | |
} | |
// Todavía otra forma | |
if(localStorage["edad"]){ | |
// Ok hay edad :) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment