typeof Operator (JScript 5.6)
Returns a string that identifies the data type of an expression.
typeof[(]expression[)] ;
Remarks
The expression argument is any expression for which type information is sought.
The typeof operator returns type information as a string. There are six possible values that typeof returns: "number," "string," "boolean," "object," "function," and "undefined."
The parentheses are optional in the typeof syntax.
Requirements
See Also
Concepts
Operator Precedence (JScript 5.6)
Operator Summary (JScript 5.6)