-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathassignment23.ts
46 lines (30 loc) · 1.21 KB
/
assignment23.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
let car: string = "Subaru";
console.log("Is car === 'Subaru' ?| I predict : true");
console.log(car == "Subaru");
console.log("Is car == 'honda' ?| I predict : false");
console.log(car == "honda");
let numeric: number = 89;
console.log(" Is numeric === 89 | I predict: true");
console.log(numeric == 89);
console.log("Is numeric === 57 | I predict: False");
console.log(numeric == 57);
let fruit: string = "orange";
console.log("Is fruit === 'banana' | I predict : false ");
console.log(fruit == "banana");
console.log("Is fruit === 'orange' | I predict : true ");
console.log(fruit == "orange");
let bike: string = " Kawasaki";
console.log("Is bike == 'Kawasaki' ? | I predict : true ");
console.log(bike == "Kawasaki");
console.log(" Is bike === 'Hayabusa' ? | I predict : false ");
console.log(bike == "Hayabusa");
let house: string = " flat";
console.log("Is house == 'flat' | I predict true");
console.log(house == "flat");
console.log(" Is house == 'banglow' | I predict false");
console.log(house == "banglow");
let food: string = "Biryani";
console.log(" Is food == 'Biryani' | I predict true");
console.log(food == "Biryani");
console.log(" Is food =='Karhai' | I predict false ");
console.log(food == "Karhai");