-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.ts
81 lines (50 loc) · 1.19 KB
/
main.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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
//camelCase
let myName:string = "Qaimudin Khuwaja"
console.log(myName)
//snake_case
let fvrt_food:string = "Mutton Biryani"
console.log(fvrt_food)
//PascalCase
let FvrtGame:string = "Pubg"
console.log(FvrtGame)
//Cheak Data Types
//String
let country = "Pakistan"
console.log(typeof(country))
//Number
let myNum = 15
console.log(typeof(myNum))
//Boolean
let password = "cdef456"
console.log(password == "cdef456")
console.log(password != "cdef456")
console.log(password != "cdef4567")
console.log(password == "cdeef456")
console.log(typeof(password == "cdef456"))
//any
let num = 123
let fname = "Faraz"
let code = "123abc"
console.log(typeof(num))
console.log(typeof(fname))
console.log(typeof(code == "123abc"))
//Concatination
let num1 = 5+8
console.log(num1)
let num2 = "5+8"
console.log(num2)
let num3 = 5+8
console.log("num1")
//Arthematics Operations
let num4 = 72+5
let num5 = 73+5
console.log(num4 - num5)
let numb = 6*2
let numb1 = 12/6
console.log(numb + numb1 * numb)
let number = 8
let number1 = 9
console.log(number > number1)
let number2 = 10
let number3 = 14
console.log(number2 < number3)