fromCharCode

Returns a string created by using the specified sequence ISO-Latin-1 codeset values.

Applies to

String

Syntax

fromCharCode(num1, ..., numN)

Parameters

num1...numN

A sequence of numbers that are ISO-Latin-1 codeset values.

Description

This method returns a string and not a String object.

fromCharCode is a static method of String. As a result, you always use it as String.fromCharCode(), rather than as a method of a String object you create.

Examples

The following example returns the string "ABC".

String.fromCharCode(65,66,67)