Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

check if isset variable js

var status = 'Variable exists'

try {
  myVar
} catch (ReferenceError) {
  status = 'Variable does not exist'
}

console.log(status)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #check #isset #variable #js
ADD COMMENT
Topic
Name
4+5 =