Easy Tutorial
❮ Prop Url Form Prop Style Borderrightstyle ❯

JavaScript fromCharCode() Method

JavaScript String Object

Example

Convert Unicode encoding to a character:

n Output result:


Definition and Usage

The fromCharCode() method accepts a specified Unicode value and returns a string.

Note: This method is a static method of String, where each character in the string is specified by a separate Unicode numeric code. The syntax for using it is: String.fromCharCode().


Browser Support

All major browsers support the fromCharCode() method.


Syntax

Parameter Values

Parameter Description
n1, n2, ..., nX Required. One or more Unicode values, which are the Unicode encodings of the characters to be created in the string.

Return Value

Type Description
String Returns the character represented by the Unicode encoding.

Technical Details

| JavaScript Version: | 1.2 | | --- | --- |


More Examples

Example

Convert Unicode encoding to a string:

n Output result:


JavaScript String Object

❮ Prop Url Form Prop Style Borderrightstyle ❯