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 PHP Login System using PDO Part 1: Create User Registration Page #6 How to uninstall Cocoapods from the Mac OS?

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
How to position an image on top of another image using CSS?CSSALTER DATABASE in PostgreSQLPostgresCreate a responsive image gallery using CSS gridCSSCrypto.getRandomValues() method in JavaScriptJavaScriptWhat does useEffect do in React?ReactWhat’s new in WordPress 5.5?WordPressUseful (and probably ignored) HTML tags: Part 1HTMLHow to create a cross-browser smooth scrolling with jQuery?jQueryJavaScript String fromCharCode() MethodJavaScriptDoes :is() pseudo selector hint at CSS preprocessing in the future?CSSHow to Block IPs and User Agents using code in Drupal or WordPress?DrupalSQL ALL OperatorSQL/MySQL