JavaScript typeof

The typeof operator returns the type of a variable or an expression.