charAt String JavaScript

The JavaScript string charAt() method retrieves the char value present at the specified index. If n is the size of the string then the index can be from 0 to n-1. Syntax: String.charAt(index) Parameters: index: It represents the specified position of a character. Return: Char value present at the specified index. Example 1: <!DOCTYPE html> … Read more