charAt() String Method in JavaScript

charAt() returns the character at the specified index of a string:

var someString = "Whale";

console.log(someString.charAt(3));

// "l"

Syntax

myString.charAt(index);

See Also

  Tweet It
✖ Clear

🕵 Search Results

🔎 Searching...