WMLScript Primer: JavaScript vs. WMLScript
WMLScript Primer
JavaScript vs. WMLScript
The following table summarizes the differences between JavaScript and WMLScript:
Feature | WMLScript | JavaScript |
Semicolons | Mandatory | Optional |
Supports HTML Comments | No | Yes |
Non-escape characters preceded by a backslash | No | Yes |
Names may include $ characters | No | Yes |
Supports global variables | Yes | Yes |
Supports automatic declarations | Yes | Yes |
Supports the generic term number | Yes | No |
Specifies maximum and minimum values for integers | Yes | No |
Supports double-precision floating-point values | No | Yes |
Supports objects | No | Yes |
Supports arrays | No | Yes |
typeof returns | an integer | a string |
Supports for..in | No | Yes |
Supports with | No | Yes |
Supports Libraries | Yes | No |
Supports invalid | Yes | No |
Supports isvalid | Yes | No |
>Supports delete | No | yes |
Supports void | No | Yes |
Supports div | Yes | No |
Supports extern | Yes | No |
Supports pragmas | Yes | No |
Next: A Final Word
Produced by Yehuda Shiran and Tomer Shiran
Created: May 22, 2000
Revised: May 22, 2000
URL: https://www.webreference.com/js/column62/7.html