Created
November 23, 2017 14:39
-
-
Save mariapaulinar/75894b65004ec3de9c0e2eb2dc6d513f to your computer and use it in GitHub Desktop.
Comprobar si una variable existe en Javascript
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(typeof variable != "undefined") { | |
console.log("Variable no existe"); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment