Topics

Jump to a topic.

Search questions

Find a question by title, tag, or summary.

Chapter 04

Strings and Unicode

Strings as UTF-16 code units, what that means for length and iteration, and template literals.
5 questions
  1. 010Why is "😀".length 2?Coming soonCoremedium
  2. 020How do you iterate over the characters a user sees?Coming soonmedium
  3. 030What are lone surrogates, and what do isWellFormed and toWellFormed fix?Coming soonhard
  4. 040How do tagged template literals work?Coming soonmedium
  5. 050How do you compare strings correctly across languages?Coming soonmedium