๐Ÿ“šย Reference


๐Ÿ“œ Chapter


charCodeAt()

charAt()


str.charAt(index)
const sentence = 'The quick brown fox jumps over the lazy dog.';

const index = 4;

console.log(`The character at index ${index} is ${sentence.charAt(index)}`);
// expected output: "The character at index 4 is q"

Parameter

Return

charAt, charCodeAt - ๋น„๊ต