Yogesh Chauhan's Blog

JavaScript String fromCharCode() Method

in JavaScript on October 10, 2020

The JavaScript String fromCharCode() Method converts unicode (UTF-16 code) numbers into characters.

Syntax


String.fromCharCode(u1, u2, ... , un)

Examples


console.log(String.fromCharCode(65));

// A

console.log(String.fromCharCode(0x2014));

// —

console.log(String.fromCharCode(89, 79, 71, 69, 83, 72))

// YOGESH

 


Most Read

#1 Solution to the error “Visual Studio Code can’t be opened because Apple cannot check it for malicious software” #2 How to add Read More Read Less Button using JavaScript? #3 How to check if radio button is checked or not using JavaScript? #4 Solution to “TypeError: ‘x’ is not iterable” in Angular 9 #5 How to uninstall Cocoapods from the Mac OS? #6 PHP Login System using PDO Part 1: Create User Registration Page

Recently Posted

#Apr 8 JSON.stringify() in JavaScript #Apr 7 Middleware in NextJS #Jan 17 4 advanced ways to search Colleague #Jan 16 Colleague UI Basics: The Search Area #Jan 16 Colleague UI Basics: The Context Area #Jan 16 Colleague UI Basics: Accessing the user interface
You might also like these
Crypto.getRandomValues() method in JavaScriptJavaScript3 ways to pass a variable in url() function in SCSS (Sass)SCSSFilling a button background from left to right using CSSCSSHow SCSS (Sass) finds a module without a file extension?SCSSHow to get the full URL of current page in PHP?PHPClasses in JavaScript: The BasicsJavaScriptThe order Property in Flex Items in CSSCSSHow to set default timezone using PHP?PHPHow to add a Bar Chart in Angular App?Angular3 Types of Arrays in PHPPHPGap in Flex?CSSHow to Add, Edit and Delete a Workflow in Etrieve?Miscellaneous