Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

js if not undefined

if (typeof myVar !== "undefined") {
    console.log("myVar is DEFINED");
}
 
PREVIOUS NEXT
Tagged: #js #undefined
ADD COMMENT
Topic
Name
5+9 =