How to access characters in a string in JavaScript

How to access characters in a string in JavaScript

Advanced string manipulation in JavaScript requires sophisticated techniques beyond simple indexing. Key methods include string normalization with `normalize()` for Unicode consistency, using the `u` flag in regular expressions for Unicode awareness, and handling surrogate pairs with `codePointAt` and `fromCodePoint`. Properly managing these aspects is essential for accurate string processing.