Para obtener el carácter en el índice 2 de una cadena, ¿cuál es el método correcto?
const str = "hello";
str.getIndex(2)
str.getChar(2)
str.charAt(2)
str.charCodeAt(2)