Open In App

JavaScript String fromCodePoint() Method

Last Updated : 11 Jul, 2025
Comments
Improve
Suggest changes
Like Article
Like
Report

JavaScript String fromCodePoint() is an inbuilt method in JavaScript that is used to return a string or an element for the given sequence of code point values (ASCII value).

Syntax: 

String.fromCodePoint(a1, a2, a3, ....)

Parameters:

  • Here parameters a1, a2, etc are the sequence of code point values.

Return value:

It returns the corresponding string or elements for the given sequence of code point values.

Example 1: This example shows the basic use of the String.fromCodePoint() Method in Javascript.

javascript
let a = String.fromCodePoint(71, 70, 71);
console.log(a);

Output
GFG

Example 2: This example shows the basic use of the String.fromCodePoint() Method in Javascript.

javascript
// Taking some code point values
let a = String.fromCodePoint(42);
let b = String.fromCodePoint(65, 90);
let c = String.fromCodePoint(66, 65, 102);

// Printing the corresponding elements of
// the code point value.
console.log(a);
console.log(b);
console.log(c);

Output
*
AZ
BAf

Example 3: This example shows the basic use of the String.fromCodePoint() Method in Javascript.

javascript
// Taking some code point values
let a = String.fromCodePoint(71, 101, 101, 107, 115);

// Printing the corresponding elements of
// the code point value.
console.log(a);

Output
Geeks

Supported Browsers:

  • Chrome 41
  • Edge 12
  • Firefox 29
  • Opera  28
  • Safari 10

Next Article

Similar Reads

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy