The JavaScript typeof Operator
The typeof operator returns the type of a variable or expression.
Try it