Languages
[Edit]
EN

JavaScript - String fromCodePoint() method example

0 points
Created by:
Jan-Alfaro
681
// ONLINE-RUNNER:browser;

console.log(String.fromCodePoint(960));        // π
console.log(String.fromCodePoint(65, 66, 67)); // ABC
console.log(String.fromCodePoint(0x0001f34e)); // 🍎

1. Documentation

Syntax

String.fromCodePoint(number1)

String.fromCodePoint(number1, number2)

String.fromCodePoint(number1, number2, ..., numberN)

Parametersnumber1, ..., numberN - sequence of code points.
ResultThis method returns a string created by using the specified sequence of code points.
DescriptionThe fromCodePoint() is a static method that returns a string created by using the specified sequence of code points.

References

  1. String.fromCodePoint() - JavaScript | MDN

Alternative titles

  1. JavaScript - String.fromCodePoint() documentation with examples
  2. js - String fromCodePoint() method documentation with examples
Donate to Dirask
Our content is created by volunteers - like Wikipedia. If you think, the things we do are good, donate us. Thanks!
Join to our subscribers to be up to date with content, news and offers.

JavaScript - String (documentation)

Native Advertising
🚀
Get your tech brand or product in front of software developers.
For more information Contact us
Dirask - we help you to
solve coding problems.
Ask question.

❤️💻 🙂

Join