June 24, 2000 - WMLScript vs. JavaScript
June 24, 2000 WMLScript vs. JavaScript Tips: June 2000
Yehuda Shiran, Ph.D.
|
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 |