TYPESCRIPT SESSION DAY 2 BY SUMIT SIR
1 Introduction
2 S/W setup
Today Lecture
1 Overview Of Vscode
2 What is Typescript
what is Typescript?
- Typescript is Object Orientated Lang.
- Typescript is superset of javascript
- Developed By Mircosoft 2012
- It was designed by Anders Hejlsberg (designer of C#) at Microsoft
its coding style is used like C++
- The ECMAScript specification is a standardized specification of a scripting language
- ECMAScript standard + ECMAScript version6(JS) + Additional features(Opps Concept,module)=Typescript
3 Advantages of Typescript
1 Strong static typing
-TypeScript is a typed language, where we can specify the type of the variables, function parameters and object properties
inferred Type to mention Data type of Variable, if not mentioned Data type its by deafault take "any" Data type
2 Find Compile Time Error
3 Supports
- Classess
- Inheritance
- interface
- enum
- Function Override
4 Disadvntages of typescript
- Browser Don't understand Typescript
.ts +tsc (typescript compiler)=>.js (javascript)
- Generally TypeScript takes time to compile the code.
5 typescript Installation
Steps
1 Installed Node
2 Installed VSCode code editor
3 npm install -g typescript
- npm = Node Package Manager
-g = globally
internet is required
node --version
- Its Gives the Information about Node Version
npm --version
-Its Gives the Information about npm(Node Package manager) Version
tsc --version
- Its Gives the Information about typescript Version
Summarry
1 Overview Of Vscode
2 What is typescript?
3 Advantages of typescript
4 Disadvntages of typescript
5 What is tsc ?
6 How to create a variable?
7 Data types of typescript?
8 How to apply data type to variable?
Comments
Post a Comment