TypeScript : It is a typed superset of JavaScript which transcompiles to plain JavaScript.
Its Salient Features are-'
1.It is reliable.
2.It is scalable.
3.It is a super of JavaScript.
4.It is used to create large applications.
A TypeScript file cannot be run directly by the browser.It has to be compiled to convert it into a JavaScript file.
step 1: Create a simple TypeScript File on your favourite Editor(for e.g. Visual Studio Code)
Step 2: Save it as .ts extension
Step 3: To compile this file,open terminal and write "tsc file_name.ts"
Step 4: A JavaScript file is created
Step 5: Run JavaScript file
You can directly compile your typeScript file but in real world project, you might want to customize how your files are compiled.For this reason,it is important to create TypeScript config file.
To create a TypeScript configuration file, you can run the following command:
tsc --init
A jsconfig.json file is created