javascript how to find type of variable code example
Example: javascript check type of variable var
> typeof "foo"
"string"
> typeof true
"boolean"
> typeof 42
"number"
> typeof "foo"
"string"
> typeof true
"boolean"
> typeof 42
"number"