Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

how to get type of variable in javascript

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