The ECMAScript (edition 2) reserves the char keyword for future use. This suggests some additional C-like functionality may be added in the future. A char may be represented by a byte. However in JavaScript, characters are really double-byte values since they encode a Unicode code point in each character.
This keyword also represents a Java data type and the char keyword allows for the potential extension of JavaScript interfaces to access Java applet parameters and return values.
See also: | byte, java.lang.Character, LiveConnect, Reserved word |
Prev | Home | Next |
CGI-Driven JavaScript | Up | Character constant |
JavaScript Programmer's Reference, Cliff Wootton Wrox Press (www.wrox.com) Join the Wrox JavaScript forum at p2p.wrox.com Please report problems to support@wrox.com © 2001 Wrox Press. All Rights Reserved. Terms and conditions. |