June 15, 2000 - WMLScript's typeof Operator
![]() |
June 15, 2000 WMLScript's typeof Operator Tips: June 2000
Yehuda Shiran, Ph.D.
|
typeof operator in JavaScript returns a string representing the variable type. In WMLScript, to save on communication bandwidth, this operator return an integer value:
| Type | Code |
| Integer | 0 |
| Floating Point | 1 |
| String | 2 |
| Boolean | 3 |
| Invalid | 4 |
For more on WMLScript, go to WMLScript Primer.



