Getting Started With Type Script

TypeScript Overview

Think of TypeScript as JavaScript + the type system.

Here's a summary of the type system at a high level:

  • Purpose: Helps us catch error during development

    • In contrast, JavaScript only gives errors at runtime

    • TypeScript can catch errors by constantly analyzing your code

  • How: Uses type annotations to analyze the code

    • Think of annotations as little comments to describe the purpose/information about the program

  • Disclaimers:

    • Disappears once you compile the code down to JS and deploy and/or run the application

    • Does NOT provide any performance optimizations

Last updated