Skip to content

sarika002/TypesScript-tutorial

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 

Repository files navigation

TypeScript-tutorial

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.

Introduction

A TypeScript file cannot be run directly by the browser.It has to be compiled to convert it into a JavaScript file.

Steps to Create a TypeScript 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

Create TypeScript config 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

About

Basics about Typescript

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors