-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path2_DataTypes.ts
27 lines (20 loc) · 1.28 KB
/
2_DataTypes.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
/*
Premitive Data types
----------------------------------------------------------------------------------------------------------------------------------------
Data type | Keyword | Description
----------------------------------------------------------------------------------------------------------------------------------------
Number | number | Double precision 64-bit floating point values. It can be used to represent both, integers and fractions.
String | string | Represents a sequence of Unicode characters
Boolean | boolean | Represents logical values, true and false
Void | void | Used on function return types to represent non-returning functions
Null | null | Represents an intentional absence of an object value.
Undefined | undefined | Denotes value given to all uninitialized variables
----------------------------------------------------------------------------------------------------------------------------------------
The any data type is the super type of all types in TypeScript. It denotes a dynamic type.
*/
var Institute:string = "Marvellous Infosystems";
var StudentsCnt:number = 1500;
console.log("Institute name :"+Institute)
console.log("Students Count: "+StudentsCnt)
var no = 11;
var no : number = 11;