To get the character at index 2 of a string, what is the correct method?
const str = "hello";
str.charAt(2)
str.getChar(2)
str.charCodeAt(2)
str.getIndex(2)