Skip to content

Latest commit

 

History

History
21 lines (17 loc) · 393 Bytes

chapter_1.1.md

File metadata and controls

21 lines (17 loc) · 393 Bytes

1.1 Fundamentals

  • Const vs let - Full variable declaration (let name: string) - Type inference - const defaults to literal types (type narrowing)
  • Any
    • For debugging
    • Why is it unsafe?
    • Any vs unknown
  • Types
    • literal types
    • union types
    • type refinement from a union type (guard functions)
    • undefined (optional types)
    • control flow analysis

Exercices