| title | ms.custom | ms.date | ms.prod | ms.reviewer | ms.suite | ms.technology | ms.tgt_pltfrm | ms.topic | f1_keywords | dev_langs | helpviewer_keywords | ms.assetid | caps.latest.revision | author | ms.author | manager | |||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
String.fromCharCode Function (JavaScript) | Microsoft Docs |
01/18/2017 |
windows-client-threshold |
|
language-reference |
|
|
|
f64120c1-23a7-48ca-8d1c-db3e8856cab4 |
12 |
mikejo5000 |
mikejo |
ghogen |
Returns a string from a number of Unicode character values.
String.fromCharCode([code1[, code2[, ...[, codeN]]]])
String
Required. The String object.
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.
You call this function on the String object rather than on a string instance.
The following example shows how to use this method:
var test = String.fromCharCode(112, 108, 97, 105, 110);
document.write(test);
// Output: plain
[!INCLUDEjsv3]