0Pricing
TypeScript Academy · Lesson

Compiling TypeScript to JavaScript

Understand the TypeScript compiler and its output.

Welcome

TypeScript cannot run directly in Node.js or the browser. It must be compiled to JavaScript first. In this lesson you'll learn how the TypeScript compiler works.

Installing the TypeScript Compiler

Install TypeScript as a dev dependency in your project. The `tsc` command becomes available in your local scripts after installation.
npm install --save-dev typescript
npx tsc --version

All lessons in this course

  1. JavaScript Pain Points: Runtime Bugs
  2. What TypeScript Adds to JavaScript
  3. Compiling TypeScript to JavaScript
  4. When to Use TypeScript in Your Projects
← Back to TypeScript Academy