TypeScript Typescript-installing-typescript-and-running-the-typescript-compiler-tsc Steps.


Installing Typescript and running typescript compiler.

To install Typescript Comiler

npm install -g typescript

To check with the typescript version

tsc -v

enter image description here

Download Visual Studio Code for Linux/Windows

Visual Code Download Link

  1. Open Visual Studio Code
  2. Open Same Folde where you have installed Typescript compiler
  3. Add File by clicking on plus icon on left pane
  4. Create a basic class.
  5. Compile your type script file and generate output.

Steps to Create first typescript

See the result in compiled javascript of written typescript code.

Output File

Thank you.