Share via


fromCharCode Method

Returns a string from a number of Unicode character values.

function fromCharCode([code1 : Number [, ... [, codeN : Number]]]]) : String

Arguments

  • code1, ... , codeN
    Optional. A series of Unicode character values to convert to a string. If no arguments are supplied, the result is the empty string.

Remarks

The fromCharCode method is called from the global String object.

Example

In the following example, test is assigned the string "plain":

var test = String.fromCharCode(112, 108, 97, 105, 110);

Requirements

Version 3

Applies To:

String Object

See Also

Reference

charCodeAt Method