-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathclass3.ts
51 lines (43 loc) · 882 Bytes
/
class3.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
let n=5
n=100
n+=100
n*=100
console.log(n)
n-=100
console.log(n)
{
// COMPARISON OPERATORS
let n1=60
let m=100
console.log(n==m)
let a=100
let b=200
console.log(a==b)
let c=100
let d=100
console.log(c==d)
//<= or >= operator
let n2=100
console.log(n2<=200)
//!= operator
let num = 100
console.log(num!=10000)
// && operator
let stdname="Faizan"
let isslot="Tuesday"
let isallowed= stdname === 'Faizan' && isslot === 'Tuesday'
// true && true
console.log(isallowed)
let StdName = "Asif"
let IsSlot="Tuesday"
let IsAllowed= StdName === 'Faizan' && IsSlot === 'tuesday'
// false && true
console.log(IsAllowed)
// or operator
let firstvalue="123"
let secondvalue="456"
let ia= firstvalue|| secondvalue
console.log(ia)
// not operator
console.log(!100)
}