JavaScript String fromCharCode() Method
You are Here:
JavaScript String fromCharCode() Method
The fromCharCode()
method returns a string created from the specified sequence of UTF-16 code units.
Example
HTML Online Editor
<!DOCTYPE html>
<html>
<body>
<script>
var str = String.fromCharCode(188, 43, 189, 61);
document.write(str);
</script>
</body>
</html>
Syntax
String.fromCharCode(num1, ..., numN)
Parameter Values
Value | Type | Explanation |
---|---|---|
num1, ..., numN | Required | Specifies a sequence of numbers that are UTF-16 code units. The range is between 0 and 65535. Numbers greater than 65535 are truncated. No validity checks are performed. |
Return Value
Value | Explanation |
---|---|
string | Returns a string created from the specified sequence of UTF-16 code units. |
Reminder
Hi Developers, we almost covered 97% of JavaScript Tutorials with examples for quick and easy learning.
We are working to cover every Single Concept in JavaScript.
Please do google search for:
Join Our Channel
Join our telegram channel to get an instant update on depreciation and new features on HTML, CSS, JavaScript, jQuery, Node.js, PHP and Python.
This channel is primarily useful for Full Stack Web Developer.