Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

check undefined in javascript

if (typeof myVariable === 'undefined'){
    //myVariable is undefined
}
Source by developer.mozilla.org #
 
PREVIOUS NEXT
Tagged: #check #undefined #javascript
ADD COMMENT
Topic
Name
5+5 =