JavaScript(JS) string method - codepointat

www.‮gi‬iftidea.com

The codePointAt() method is a built-in method of the JavaScript String object. It returns the Unicode code point of the character at the specified index in a string.

Here's the syntax:

str.codePointAt(index)

where str is the string to get the code point from, and index is the zero-based index of the character to retrieve.

Here's an example that shows how to use the codePointAt() method:

const myString = "