TypeScript String.fromCharCode() Method Last Updated : 28 Apr, 2025 Comments Improve Suggest changes Like Article Like Report The fromCharCode() is an inbuilt TypeScript String method. It mainly changes Unicode code points within the Basic Multilingual Plane (BMP) into strings. Although it provides a method for dealing with characters through typing on a keyboard it has restrictions when it comes to characters, outside the BMP. Syntax:String.fromCharCode(...codePoints: number[]): stringParameters:codePoints: One or more Unicode code points to be converted into characters.Return Value:A string that contains characters whose Unicode points were passed as an argument within the method. Example 1: In this example here we are creating a string from unicode code point values. JavaScript let codeUnits: number[] = [ 71, 101, 101, 107, 115, 70, 111, 114, 71, 101, 101, 107, 115 ]; let geeksString: string = String .fromCharCode(...codeUnits); console.log(geeksString); Output: GeeksForGeeksExample 2: In this example here we are creating a string from unicode code point values. JavaScript let codeUnits: number[] = [ 74, 111, 104, 110, 68, 111, 101 ]; let name: string = String.fromCharCode(...codeUnits); console.log(name); Output: JohnDoe Comment More infoAdvertise with us Next Article TypeScript String.fromCharCode() Method P pankajbind Follow Improve Article Tags : JavaScript Web Technologies TypeScript Similar Reads TypeScript String charCodeAt() Method The String.charCodeAt() method in TypeScript returns the Unicode value of the character at a specified index in a string. It takes an integer index as a parameter and returns the corresponding Unicode value as a number.Syntaxstring.charCodeAt(index);Parameter: This method accepts a single parameter 2 min read TypeScript String String.fromCodePoint() Method The fromCodePoint() is an inbuilt TypeScript String method. It is mainly used to get the string value of any given Unicode point value. This method is really helpful when you want to handle characters that are not readily available through keyboard input. Syntax:String.fromCodePoint(...codePoints: n 1 min read JavaScript String fromCharCode() Method The fromCharCode() method in JavaScript is a static method of the String object. Which is used to create a string from a sequence of Unicode values.Syntax:String.fromCharCode(n1, n2, ..., nX)Parameters:The method takes the UTF-16 Unicode sequences as its argument. The number of arguments to this met 2 min read TypeScript String In TypeScript, the string is sequence of char values and also considered as an object. It is a type of primitive data type that is used to store text data. The string values are used between single quotation marks or double quotation marks, and also array of characters works same as a string. TypeSc 4 min read JavaScript String charCodeAt() Method The JavaScript str.charCodeAt() method returns a Unicode character set code unit of the character present at the index in the string specified as the argument. The index number ranges from 0 to n-1, where n is the string's length.Syntax:str.charCodeAt(index)Parameters: This method accepts a single p 3 min read Like