Menu

Foundations of TypeScript

Module 1: Foundations of TypeScript

Introduction

JavaScript lets you pass any value anywhere. That flexibility is convenient for small scripts, but in larger programs it causes bugs that only appear when a user clicks the wrong button: calling a method on undefined, adding a number to a string, or misspelling a property name.

TypeScript adds a type system on top of JavaScript so these mistakes are caught while you write code, not after it ships. This module explains what TypeScript is, how the compiler checks and removes types, how to set up a project, and how to read the errors TypeScript gives you.

What you will learn in this module

  • What TypeScript is and how it relates to JavaScript
  • How the compiler checks types and then removes them
  • How to install TypeScript and run .ts files with tsc, Node.js, or tsx
  • How to write and compile your first program
  • How to read compiler errors and use your editor to fix them quickly

TypeScript Tutorial

J

Jebasta





Get in Touch For Details