0 bytes punched, read with UTF-8.
Chapter 5 of 7
One emoji, many numbers
A gift note ends in a family emoji, and the form says the note is too long. How long is one emoji?
This chapter: Why does one emoji have several different lengths?
About this chapter
You will learn
- Joined emoji are several code points
- Code units, code points and bytes differ
- Graphemes are what people see
Words you’ll meet
- Grapheme
- What a reader sees as one character, even when it is several code points.
- Zero-width joiner
- An invisible code point, U+200D, that glues emoji into one picture.
- Code unit
- A 16-bit piece of a JavaScript string; past U+FFFF a character takes two.
Step 1 of 4
The family emoji 👨👩👧 looks like one character. Forms often count with JavaScript’s .length.
Predict what .length says.