YogeshChauhan . com

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

 

amazon

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 How to Use SQL MAX() Function with Dates? #6 PHP Login System using PDO Part 1: Create User Registration Page

Recently Posted

Jun 16 What are Stored Procedures for SQL Server? Jun 16 What are Class Constants in PHP? Jun 15 A short basic guide on states in React Jun 15 How to define constants in PHP? Jun 15 How to define visibility for a property in PHP? Jun 15 How to use @if and @else in SCSS?

You might also like these

How to force your website to load securely with an .htaccess file?MiscWhat is Hoisting in JavaScript?JavaScriptHow to refresh a page using PHP at regularly occurring intervals?PHPDebugging in WordPress Part 2: WP_DEBUG_LOG and WP_DEBUG_DISPLAYWordPressJavaScript Input Validation Theme Park Example using throw StatementJavaScriptSQL GROUP BY StatementSQL/MySQL5 Steps to Create a Line using Canvas Tag in HTML5HTMLCustom Post Type Template Files in WordPressWordPressHow to add Go Back button in Swift 5?SwiftCheck If a String Contains a Specific Word in PHPPHPWhat is Git?MiscAccessing and Setting features of JavaScript ObjectsJavaScript