← You're truncating bios with `.slice()`. `Intl.Segmenter` knows where the emoji actually end.Quiz
Intl.Segmenter and string truncation
Eight questions on why str.length lies about emoji, and how Intl.Segmenter counts what a reader actually sees.
questions8
pass mark70%
resultsat the end
No account needed. Answer all 8 questions, then see your score with every answer explained and a reference to the spec or MDN — pass and you can claim a certificate.