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
How to check if the element exists using JavaScript and jQuery?JavaScriptArguments in @mixin rules in SCSS (Sass)SCSSLearn to make a responsive gallery using CSS Grid and without media queriesCSSAlways add associated labels to your Form elementsUI/UXWordPress: How to get field values in Advanced Custom Fields?WordPressHow to link/add CSS file to HTML Document?CSSLEFT JOIN in PostgresPostgresasync function in JavaScriptJavaScriptHow to add transparent text on top of an image using CSS?CSSImplicit and Explicit Joins in Oracle SQLSQL/MySQLCSS Overflow Property with ExamplesCSSHow to convert a number rounding to a specified number of decimals in JavaScript?JavaScript