Trusted answers to developer questions
Trusted Answers to Developer Questions

Related Tags

javascript
communitycreator

How to use the String.fromcharcode() function

Muhammad Hameed

String.fromcharcode() is a function in JavaScript that converts Unicode values into a string.

Syntax

var resultant_string= String.fromCharCode(68);

The output value in this scenario would be D, which is a string.

Parameters

If you pass multiple parametersunicode values representing a character separated by commas, the result will be a string:

var resultant_string= String.fromCharCode(68, 85, 67, 75);

The value in this scenario is DUCK, which is a string.

Code

console.log(String.fromCharCode(68, 85, 67, 75));

RELATED TAGS

javascript
communitycreator
RELATED COURSES

View all Courses

Keep Exploring