Skip to content

Latest commit

 

History

History
60 lines (49 loc) · 1.45 KB

File metadata and controls

60 lines (49 loc) · 1.45 KB
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
devlang-javascript
language-reference
fromCharCode
JavaScript
TypeScript
DHTML
fromCharCodeAt method
characters, from Unicode
f64120c1-23a7-48ca-8d1c-db3e8856cab4
12
mikejo5000
mikejo
ghogen

String.fromCharCode Function (JavaScript)

Returns a string from a number of Unicode character values.

Syntax

String.fromCharCode([code1[, code2[, ...[, codeN]]]])   

Parameters

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.

Remarks

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  
  

Requirements

[!INCLUDEjsv3]

See Also

charCodeAt Method (String)