Tackling TypeScript
Please support this book: buy it or donate
(Ad, please don’t block.)

5 Trying out TypeScript

This chapter gives tips for quickly trying out TypeScript.

5.1 The TypeScript Playground

The TypeScript Playground is an online editor for TypeScript code. Features include:

The Playground is very useful for quick experiments and demos. It can save both TypeScript code snippets and compiler settings into URLs, which is great for sharing such snippets with others. This is an example of such a URL:


5.2 TS Node

TS Node is a TypeScript version of Node.js. Its use cases are:

Use npx ts-node to run the REPL without installing it.