Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript check if not undefined

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