Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript check type of variable var

> typeof "foo"
"string"
> typeof true
"boolean"
> typeof 42
"number"
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #javascript #check #type #variable #var
ADD COMMENT
Topic
Name
9+6 =