Description
The fromCharCode() method is used to convert Unicode values to characters.
This method has the form:
String.fromCharCode(n1,...,nX)
Parameter | Description |
---|---|
n1,...,nX | (required) One or more Unicode values to be converted |
Note: This method is a static method of the String object.
Examples
The following example shows the basic use of this method.
<script>
document.write(String.fromCharCode(72,101,108,108,111));
</script>
This produces the following result:
Browser Support
Firefox | IE | Chrome | Opera | Safari |
---|---|---|---|---|