WMLScript Primer: JavaScript vs. WMLScript | WebReference

WMLScript Primer: JavaScript vs. WMLScript


WMLScript Primer

JavaScript vs. WMLScript

The following table summarizes the differences between JavaScript and WMLScript:

FeatureWMLScriptJavaScript
SemicolonsMandatoryOptional
Supports HTML CommentsNoYes
Non-escape characters preceded by a backslashNoYes
Names may include $ charactersNoYes
Supports global variablesYesYes
Supports automatic declarationsYesYes
Supports the generic term numberYesNo
Specifies maximum and minimum values for integersYesNo
Supports double-precision floating-point valuesNoYes
Supports objectsNoYes
Supports arraysNoYes
typeof returnsan integera string
Supports for..inNoYes
Supports withNoYes
Supports LibrariesYesNo
Supports invalidYesNo
Supports isvalidYesNo
>Supports deleteNoyes
Supports voidNoYes
Supports divYesNo
Supports externYesNo
Supports pragmasYesNo

Next: A Final Word

http://www.internet.com

Produced by Yehuda Shiran and Tomer Shiran

Created: May 22, 2000
Revised: May 22, 2000

URL: http://www.webreference.com/js/column62/7.html