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 How to check if radio button is checked or not using JavaScript? #2 How to add Read More Read Less Button using JavaScript? #3 Solution to “TypeError: ‘x’ is not iterable” in Angular 9 #4 Solution to the error “Visual Studio Code can’t be opened because Apple cannot check it for malicious software” #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
How to remove a specific item from an array in JavaScript?JavaScriptclip and clip-path properties in CSSCSSCheck if any column has NULL values in PostgresPostgresHow to detect the Blog Page in WordPress?WordPressHow to reprocess failed items in Etrieve Flow?MiscellaneousIntroduction to components and templates Part 1: Component MetadataAngularWindow innerHeight and innerWidth properties in JavaScriptJavaScriptsubstring() Method in JavaScriptJavaScriptHow to Make a Simple Module with a Form and Menu Link in Drupal 7.x?DrupalA simple example on grid ‘auto-fill’ vs ‘auto-fit’CSSHow to make WordPress main stylesheet (style.css)?WordPressJavaScript String Properties and MethodsJavaScript