# Get character code

```js
const char = "a";
const charCode = char.charCodeAt(0);
console.log(charCode); // 97
```
