Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

js if not undefined

if (myVar != undefined){
	console.log("Defined")
}

if (myVar != "undefined"){
	console.log("Defined")
}
 
PREVIOUS NEXT
Tagged: #js #undefined
ADD COMMENT
Topic
Name
3+9 =