fromCharCode (JavaScript)
Creates a string from character codes.
Defined in
String (Standard - JavaScript)| Parameters | Description |
|---|---|
| code | The Unicode value of a character. Multiple parameters are allowed. |
| Returns | Description |
|---|---|
| string | A string whose characters are the derived from the parameter values in sequence. |
Usage
This is a static method. It can be called using the String class name, and gives the same result if called by any String object.Examples
This example returns Paris.String.fromCharCode(80, 97, 114, 105, 115)