TypeScript | String charCodeAt() Method
The charCodeAt() is an inbuilt function in TypeScript which is used to return the number indicating the Unicode value of the character at the specified index.
Parameter: This method accept a single parameter as mentioned above and described below.
- index This parameter is an integer between 0 and 1 less than the length of the string.
Return Value: This method returns number indicating the Unicode value of the character at the given index.
Below example illustrate the String charCodeAt() method in TypeScriptJS:
Character at 0 is : 74 Character at 1 is : 97
My Personal Notes arrow_drop_up
Please Login to comment...