Values, Types, Coercion & Equality Mechanics
Master ECMAScript data representations: the 7 primitives, reference pointers, abstract coercion rules, and equality algorithms.
Understanding of variables and execution environments from Module 1.
Master the 7 primitives, reference identity, ECMAScript abstract coercion operations, and equality algorithms.
Read in order, or jump to what you need.
Every lesson builds on the one before it. Open any lesson to read the explanation, run the examples, and try the practice challenges.
- 02.01The 7 Primitive Types vs Object Reference Semantics4 min
Examine ECMAScript data types. Understand value immutability, memory representations, wrapper boxing, and reference identity.
- 02.02Type Coercion Mechanics: ToPrimitive, ToNumber, and ToString4 min
Master JavaScript's abstract coercion operations. Learn how the language converts values during arithmetic, comparison, and string interpolation.
- 02.03Equality Demystified: Strict (===), Loose (==), and Object.is()4 min
Master equality comparisons. Understand the loose equality coercion algorithm, strict type checking, and the precise mathematical distinctions of Object.is().
- 02.04PROJECT 01: Type-Safe Schema ValidatorProject4 min
Build a zero-dependency type validation library from scratch. Validate nested object shapes, enforce strict primitives, and emit rich error diagnostics.
Ready to move on?
Complete the Type-Safe Schema Validator project validating arbitrary input objects.
Open the module self-check