-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path23. Conditional Tests.js
34 lines (25 loc) · 1.03 KB
/
23. Conditional Tests.js
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
let name = 'Majid';
console.log("Is name == 'Majid'? I predict True.")
console.log(name == 'Majid')
console.log("Is name == 'Momin'? I predict False.")
console.log(name == 'Momin')
let car = "Fortuner"
console.log("Is car == 'Fortuner'? I predict True.")
console.log(car == 'Fortuner')
console.log("Is car == 'KIA Sportage'? I predict False.")
console.log(car == 'KIA Sportage')
let institute = "PIAIC"
console.log("Is institute == 'PIAIC'? I predict True.")
console.log(institute == 'PIAIC')
console.log("Is institute == 'Rata Group of studies'? I predict False.")
console.log(institute == 'Rata Group of studies')
let course = "Web 3.0 and Metaverse"
console.log("Is course == 'Web 3.0 and Metaverse'? I predict True.")
console.log(course == 'Web 3.0 and Metaverse')
console.log("Is course == 'web 2.0'? I predict False.")
console.log(course == 'web 2.0')
let gender = "Male"
console.log("Is gender == 'Male'? I predict True.")
console.log(gender == 'Male')
console.log("Is gender == 'female'? I predict False.")
console.log(gender == 'female')