contents   index   previous   next



String.fromCharCode()

syntax:

String.fromCharCode(chrCode[, ...])

where:

chrCode - character code, or list of codes, to be converted.

 

return:

string - string created from the character codes that are passed to it as parameters.

 

description:

The identifier String is used with this static method, instead of a variable name as with instance methods. The arguments passed to this method are assumed to be unicode characters.

 

see:

String(), String charCodeAt()

 

example:

// The following code:

var string = String.fromCharCode(0x0041,0x0042)

// will set the variable string to be "AB".