TypeScript String codePointAt() Method Last Updated : 22 Jul, 2024 Summarize Comments Improve Suggest changes Share Like Article Like Report The codePointAt() method is a built-in TypeScript string method. It is primarily used to retrieve the Unicode code point value of a character at a specified position within a string.Syntax:stringName.codePointAt(position);Parameters:position: This parameter requires the index position of the character whose Unicode code point value you want to retrieve.Return Value:It returns a Unicode value if the given index position of the character is valid, otherwise returns undefined. Examples of codePointAt() MethodExample 1: Basic Implementation of the codePointAt() MethodThe following code demonstrates a basic implementation of the codePointAt() method in TypeScript. JavaScript let str: string = "Hjëllo"; let uniChar: number|undefined = str.codePointAt(1); console.log(uniChar); Output:106Example 2: Handling Invalid PositionThe following code shows the behavior of the codePointAt() method when an invalid position is passed to it. JavaScript let str: string = "Hjëllo GFG"; let uniChar: number|undefined = str.codePointAt(10); console.log(uniChar); Output:undefined Comment More infoAdvertise with us Next Article TypeScript String charAt() Method P pankajbind Follow Improve Article Tags : 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 TypeScript String charAt() Method The String.prototype.charAt() method in TypeScript is used to return the character at the specified index of a string. The characters in the string are indexed from left to right, starting at 0.Syntax:string.charAt( index )Parameter: This method accepts a single parameter as mentioned above and desc 2 min read TypeScript String.fromCharCode() Method 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 1 min read Java String codePointAt() Method The codePointAt() method in Java is part of the String class. It is used to return the Unicode value of the character at the specified index in the string. This method is very useful when working with characters beyond the Basic Multilingual Plane (BMP), such as emojis or special symbols.Example 1: 3 min read StringBuilder codePointAt() in Java with Examples The codePointAt(int index) method of StringBuilder class takes an index as a parameter and returns a character unicode point at that index in String contained by StringBuilder or we can say charPointAt() method returns the "unicode number" of the character at that index. The index refers to char val 4 min read Like