String.fromCharCode

Returns a string created by using the specified sequence of Unicode values.

Method of String
Static

Syntax

fromCharCode( num1, ..., numN )

Parameters

Parameter Description
num1, ..., num_N A sequence of numbers that are Unicode values.

Description

This method returns a string and not a String object.
Because fromCharCode is a static method of String, you always use it as String.fromCharCode(), rather than as a method of a String object you created.

Examples

The following example returns the string "ABC".

Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.