Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript if a variable is undefined

if(typeof my_var === 'undefined') {
  //my_var is undefined
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #javascript #variable #undefined
ADD COMMENT
Topic
Name
6+8 =