Maps, Sets, and Dates
Choose purpose-built collections for keyed data and uniqueness, then handle time as an explicit boundary.
Lesson introduction
Map accepts keys of any value type and preserves insertion order; Set stores unique values. Date represents an instant but requires careful parsing and formatting rules.
Where this fits
This lesson builds one part of the path from language fundamentals to complete browser applications.
What you will build
Aggregate attempts with Map, deduplicate completions with Set, and format a timestamp for a named locale.
You will first study the underlying rule, then trace worked code, repair a mistake, and create an independent solution.