LaunchCode logo
  1. Contents
  2. 28. TypeScript

28. TypeScriptΒΆ

  • 28.1. Why TypeScript?
    • 28.1.1. Set Up Your Local Development Environment
  • 28.2. Declaring and Using Variables
    • 28.2.1. number
    • 28.2.2. string
    • 28.2.3. boolean
    • 28.2.4. Examples
    • 28.2.5. Check Your Understanding
  • 28.3. Arrays in TypeScript
    • 28.3.1. Examples
    • 28.3.2. Check Your Understanding
  • 28.4. Functions in TypeScript
    • 28.4.1. Declaring Functions
    • 28.4.2. Optional Parameter
    • 28.4.3. Check Your Understanding
  • 28.5. Classes and Interfaces in TypeScript
    • 28.5.1. Classes
    • 28.5.2. Interfaces
    • 28.5.3. export
    • 28.5.4. import
    • 28.5.5. Check Your Understanding
  • 28.6. Compiling TypeScript
    • 28.6.1. hello_world.ts
  • 28.7. Exercises: TypeScript
    • 28.7.1. Part 0 - Get the Starter Code
    • 28.7.2. Part 1 - Declare Variables With Type
    • 28.7.3. Part 2 - Print Days to Mars
    • 28.7.4. Part 3 - Create a Function
    • 28.7.5. Part 4 - Create a Spacecraft Class
    • 28.7.6. Part 5 - Export and Import the SpaceLocation Class
    • 28.7.7. Sanity Check
  • 28.8. Studio: TypeScript
    • 28.8.1. Starter Code
    • 28.8.2. Requirements
    • 28.8.3. Classes
    • 28.8.4. Simulation in index.ts
    • 28.8.5. Compile and Run index.ts
    • 28.8.6. Submitting Your Work
  • ← 27.4. Studio: Fetch & JSON
  • 28.1. Why TypeScript? →

Back to top