This site is mobile accessible. Press the "Tap Here" button to use a smaller font-size.

Smartphone icons created by Freepik - Flaticon

JS Strings

The at() Method

The at() method returns an indexed element from a string:

const name = "W3Schools";
let letter = name.at(2);

document.getElementById("demo").innerHTML = letter;