String.fromCodePoint(value1, value2, ... value_n);
Parameters or Arguments
value1, value2, … value_n The Unicode code points to convert to characters and then concatenate together into a string.
The fromCodePoint() approach accepts a sequence of Unicode code points, converts these values to characters and concatenates them collectively in a string. This resulting string is then returned with the aid of the fromCodePoint() method.
The fromCodePoint() method will return RangeError if an invalid code point is furnished as a parameter.
The fromCodePoint() method does no longer trade the fee of the original string. You can also use the fromCharCode() approach if all of the Unicode values are representable in single UTF-16 code units.
In this example, we have invoked the fromCodePoint() static approach through the String constructor object.
We have written the output of the fromCodePoint() technique to the internet browser console log, for demonstration purposes, to show what the fromCodePoint() method returns.
The following will be output to the internet browser console log:
As you can see, the fromCodePoint() method converted the Unicode code point of 134071 into the character value ‘𠮷’.