You are here: Home / Topics / Which method is used to retrieve a character from a certain index?

Which method is used to retrieve a character from a certain index?

Filed under: JavaScript Interview Questions on 2022-08-06 09:34:07

The charAt() function of the JavaScript string finds a char element at the supplied index. The index number begins at 0 and continues up to n-1, Here n is the string length. The index value must be positive, higher than, or the same as the string length.

About Author:
G
Geetam     View Profile
Hi, I am using MCQ Buddy. I love to share content on this website.