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() method accepts a sequence of Unicode code points, converts these values to characters and concatenates them together in a string. This ensuing string is then back by the fromCodePoint() method.
The fromCodePoint() technique will return RangeError if an invalid code point is provided as a parameter.
The fromCodePoint() technique does no longer change the fee of the original string. You can also use the fromCharCode() method if all of the Unicode values are representable in single UTF-16 code units.
In this example, we have invoked the fromCodePoint() static method through the String constructor object.
We have written the output of the fromCodePoint() technique to the internet browser console log, for demonstration purposes, to exhibit what the fromCodePoint() approach returns.
The following will be output to the net browser console log: