The method fromCodePoint() takes a sequence of
String.fromCodePoint(num1, ..., numN)
Two or more integer parameters, where each num represents a code point.
num1, ..., numN - A sequence of code points.
The method returns a string that corresponds to these code points. Note that a string is returned and not a String object.
fromCodePoint()method throws aRangeErrorif an invalid Unicode code point is provided as an argument.
Let’s look at a code example. We can see that the ASCII value of 'A' is 65, 'B' is 66, etc. The code points represent these ASCII values.
let str = String.fromCodePoint(65, 66, 67, 68, 69);console.log(str); // ABCDElet str1 = String.fromCodePoint(65, 89, 90, 78, 79);console.log(str1); // AYZNO
Free Resources