Web features explorer

String at()

Widely available since 2024-09-14
Tags: javascript Groups: JavaScript > Primitive types > Strings

The at() method of strings returns the character (one UTF-16 code unit) at an index, including negative indices for getting the character relative to the end of the string. Also known as the relative indexing method.

Learning resources on MDN

Browser support

Specifications