Previous PageNext Page

7.4.36 typeof Operator

Used to determine the type of an expression.
 

Syntax

typeof [ ( ] expression [ ) ] ;

Arguments

expression
Any expression for which type information is sought.

Remarks

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.
 

Copyright © 2000 Chili!Soft

Previous PageTop Of PageNext Page