Sun Chili!Soft ASP Sun Chili!Soft
ASP Sun Microsystems

 

JScript typeof Operator

Used to determine the type of an expression.

Syntax: JScript typeof Operator

typeof [ ( ] expression [ ) ] ;

Arguments: JScript typeof Operator

expression

Any expression for which type information is sought.

Remarks: JScript typeof Operator

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 2002 Sun Microsystems, Inc. All rights reserved. Legal Notice.