JavaScript | String.fromCodePoint()
The String.fromCodePoint() is an inbuilt function in JavaScript which is used to return a string or an element for the given sequence of code point value (ASCII value).
List of code point values of different elements:
Syntax:
String.fromCodePoint(a1, a2, a3, ....)
Parameters: Here parameter 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.
Code #1:
<script> // Taking some code point values a = String.fromCodePoint(42); b = String.fromCodePoint(65, 90); c = String.fromCodePoint(66, 65, 102); // Printing the corresponding elements of // the code point value. document.write(a + "<br>") document.write(b + "<br>") document.write(c + "<br>") </script> |
Output:
* AZ BAf
Recommended Posts:
- Introduction to JavaScript Course | Learn how to Build a task tracker using JavaScript
- JavaScript Course | Understanding Code Structure in JavaScript
- JavaScript Course | Printing Hello World in JavaScript
- JavaScript Course | Conditional Operator in JavaScript
- JavaScript Course | Data Types in JavaScript
- JavaScript Course | Logical Operators in JavaScript
- JavaScript Course | JavaScript Prompt Example
- JavaScript Course | Functions in JavaScript
- JavaScript Course | Operators in JavaScript
- JavaScript Course | Loops in JavaScript
- JavaScript Course | Variables in JavaScript
- JavaScript Course | Objects in JavaScript
- JavaScript vs Python : Can Python Overtop JavaScript by 2020?
- JavaScript Course | What is JavaScript ?
- JavaScript | Let
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to contribute@geeksforgeeks.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.



