char (Reserved word)

Reserved for future language enhancements.

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


ECMA 262 edition 2 - section - 7.4.3

ECMA 262 edition 3 - section - 7.5.2