charAt()

차노·2023년 8월 19일
0

JS

목록 보기
69/96

In JavaScript, the charAt() method is used to retrieve a specific character from a string at a given index.

자바스크립트에서, 주어진 인덱스에서 문자열에서부터 특정 문자를 회수하는 역할을 한다.

It takes an index as an argument and returns the character located at that index within the string.

인자로서 인덱스를 받고 문자열 내의 인덱스에 해당하는 문자를 반환한다.

The index is zero-based, meaning that the first character is at index 0, the second at index 1, and so on.

0을 기반으로 하며 첫 번째 문자는 인덱스가 0이고 순차적으로 증감된다.

Example

0개의 댓글