You are here: Home / Topics / TypeScript Overview and Installation Guides

TypeScript Overview and Installation Guides

Filed under: TypeScript on 2024-03-14 10:06:45

TypeScript is an open-source language that is developed and maintained by Microsoft under the Apache 2 license. TypeScript is a strongly typed superset of JavaScript which compiles to plain JavaScript. 

It needs a compiler to compile and generate in a JavaScript file. 

TypeScript is the ES6 version of JavaScript with some additional features. TypeScript cannot run directly on the browser. It needs a compiler to compile the file and generate it in a JavaScript file, which can run directly on the browser. The TypeScript source file is in the ".ts" extension. We can use any valid ".js" file by renaming it to the ".ts" file. TypeScript uses TSC (TypeScript Compiler) compiler, which convert Typescript code (.ts file) to JavaScript (.js file).

Reference Link:
Install the TypeScript using NPM (Node):
--- Download the Node first:
--- Install the Node & check that the node has installed or not in
your computer by run the following command in cmd:
    node --version
--- Execute the following commands to install typescript:
npm install typescript --save-dev //As dev dependency
npm install typescript -g //Install as a global module
npm install typescript@latest -g //Install latest if you have an older version

To verify the installation was successful, enter the command tsc - v in the Terminal Window:

About Author:
Java Developer     View Profile
Hi, I am using MCQ Buddy. I love to share content on this website.