METHOD:  String::fromCharCode


String.fromCharCode(num1,..........,numN)

This method takes the specified Unicode values and returns a string (but not a String object). Note that this method is a static method of String. Therefore, it is not used as a method of a String object that you have created. The syntax is always String.fromCharCode() as opposed to myStringObject.fromCharCode().

The following code takes the specified Unicode values and writes the resulting string to the document.

Code:
document.write (String.fromCharCode(67,65,66))

Output:
CAB


Copyright 1999-2001 by Infinite Software Solutions, Inc. All rights reserved.
Trademark Information