Skip to content

Instantly share code, notes, and snippets.

@mariapaulinar
Created November 23, 2017 14:39
Show Gist options
  • Save mariapaulinar/75894b65004ec3de9c0e2eb2dc6d513f to your computer and use it in GitHub Desktop.
Save mariapaulinar/75894b65004ec3de9c0e2eb2dc6d513f to your computer and use it in GitHub Desktop.
Comprobar si una variable existe en Javascript
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