charAt() returns the character at the specified index of a string:
var someString = "Whale";
console.log(someString.charAt(3));
// "l"

This sponsored banner helps support the site 🙏
Syntax
myString.charAt(index);
charAt() returns the character at the specified index of a string:
var someString = "Whale";
console.log(someString.charAt(3));
// "l"
myString.charAt(index);
🔎 Searching...