June 15, 2000 - WMLScript's typeof Operator | WebReference

June 15, 2000 - WMLScript's typeof Operator

Yehuda Shiran June 15, 2000
WMLScript's typeof Operator
Tips: June 2000

Yehuda Shiran, Ph.D.
Doc JavaScript

The typeof operator in JavaScript returns a string representing the variable type. In WMLScript, to save on communication bandwidth, this operator return an integer value:

TypeCode
Integer0
Floating Point1
String2
Boolean3
Invalid4

For more on WMLScript, go to WMLScript Primer.