๐ย Reference
๐ Chapter
str.charCodeAt(index)
index
: 0 ์ด์์ด๊ณ ย ๋ฌธ์์ด์ ๊ธธ์ด๋ณด๋ค ์์ย ์ ์. ์ซ์๊ฐ ์๋๋ผ๋ฉด 0์ ๊ธฐ๋ณธ๊ฐ์ผ๋ก ์ฌ์ฉํจ.const sentence = 'The quick brown fox jumps over the lazy dog.';
const index = 4;
console.log(`The character code ${sentence.charCodeAt(index)} is equal to ${sentence.charAt(index)}`);
// expected output: "The character code 113 is equal to q"