bikrampun / intro-to-typescript

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Introduction to Typescript


Typescript

  • A statically typed superset of JavaScript that compiles to plain JavaScript.
    • Any valid JavaScript, is valid Typescript
  • TypeScript adds additional developer features to JavaScript that are stripped away at compile time

  • TypeScript is a static type checker
    • Detects errors in code without running it
  • TypeScript does NOT effect the runtime behavior of JavaScript
  • To run TypeScript code, we have to convert it to JavaScript FIRST
  • The TypeScript to JavaScript compilation process removes all type information
  • TypeScript doesn’t provide any additional runtime libraries. There’s no additional TypeScript-specific framework to learn.
  • Should I learn JavaScript or TypeScript first?

Prerequisites

  • You have built basic web pages or backends with JavaScript
  • You have npm and node installed

Agenda

Examples

We'll use project templates for these so we don't have to configure typescript from scratch.

About

License:MIT License


Languages

Language:TypeScript 100.0%