TypeScript / Basic
TypeScript โ Basic
Understand values, narrowing, functions, objects, and checked sequences.
What you will learn
- Explain the static and runtime obligations of the levelโs interfaces.
- Solve worked exercises and reproduce complete examples under the stated compiler settings.
The checker, emitter, and JavaScript runtime
Separate source checking from JavaScript execution, pin a reproducible compiler baseline, and identify which assumptions belong to the runtime.
Start learningValues, inference, and control flow
Use inference to express intent without redundant annotations, then reason about JavaScript values and boundary conditions explicitly.
Start learningUnions, narrowing, and nullability
Represent alternatives honestly and use runtime observations to justify property access, including explicit handling of missing values.
Start learningFunctions, contracts, and callbacks
Express argument and result relationships, distinguish optional inputs from missing validation, and pass behavior through appropriately typed callbacks.
Start learningObjects, interfaces, and structural types
Describe object capabilities without confusing a static view with exact runtime shape, ownership, or deep immutability.
Start learningArrays, tuples, and checked indexing
Model sequences and fixed positional records, account for absent elements, and distinguish readonly views from independent runtime copies.
Start learning