Handle Unicode text, emoji, encoding, normalization, code points, and safe storage.
Lessons
Learn how Unicode assigns a number to every character.
What Is Unicode is easiest to learn by reading the example, changing it, and observing the result.
// Every character has a Unicode code point, written U+XXXX
const chars = ['A', 'é', 'あ', '😀'];
for (const ch of chars) {
const cp = ch.codePointAt(0).toString(16).toUpperCase().padStart(4, '0');
console.log(ch, '-> U+' + cp);
}
// A -> U+0041 | é -> U+00E9 | あ -> U+3042 | 😀 -> U+1F600Practice the What Is Unicode example in a small scratch file, then explain what changed and why.