๐ย Reference
๐ Chapter
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"
index
charCodeAt()
ย ์ย UTF-8๋ก ํํ ๊ฐ๋ฅํ ๋ฌธ์์ ์ฌ์ฉํ๋ ๊ฒ์ด,ย codePointAt()
ย ์ย UTF-16๋ก ํํ ๊ฐ๋ฅํ ๋ฌธ์์ ์ฌ์ฉํ๋ ๊ฒ์ด ์ ํฉํ๋ค.