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 Solution to “TypeError: ‘x’ is not iterable” in Angular 9 #3 How to add Read More Read Less Button using JavaScript? #4 How to uninstall Cocoapods from the Mac OS? #5 PHP Login System using PDO Part 1: Create User Registration Page #6 How to Use SQL MAX() Function with Dates?

Recently Posted

#Aug 15 Is PHP still good for back-end programming? #Aug 10 How to create a multisite network in WordPress? #Aug 3 How to create a circle that follows a cursor using JavaScript and CSS? #Aug 3 How to make a curtain slider using jQuery and CSS? #Aug 2 How to progressively load images and add a blurry placeholder? #Aug 1 How to create a placeholder loader (throbber) using CSS?
You might also like these
Control rendering using CSS content-visibility propertyCSSALTER DATABASE in PostgreSQLPostgresHow to add Date and Time picker in HTML and get the values using JavaScript?HTMLIf statement shorthand examples in JavaScriptJavaScriptWordPress: How to find all posts with a specific custom field value?WordPressHow to add a scroll back to top button using JavaScript and CSS?CSSFive common features of Angular template syntax (with examples)AngularHow to create a sticky menu pin using CSS?CSS@mixin and @include in SCSS (Sass)SCSSHow to zoom an element on hover using CSS?CSSHow to auto-resize textarea based on text input using JavaScript or jQuery?JavaScriptThe 8 Golden Rules of Programming I Have Learned in My CareerMiscellaneous