DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR JAVASCRIPT
js if variable is defined
if (typeof variable !== 'undefined') { // the variable is defined }
Source by stackoverflow.com #
PREVIOUS
NEXT
Tagged:
#js
#variable
#defined
ADD COMMENT
Topic
COMMENT
Name
8+7 =
Submit