-
Notifications
You must be signed in to change notification settings - Fork 0
/
23-conditional-tests.mjs
40 lines (30 loc) · 1.37 KB
/
23-conditional-tests.mjs
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
const fruit = "pineapple";
const vehicle = "airplane";
const laptop = "macbook";
const profession = "freelance developer";
const job = "owner";
const business = "software house";
const business_region = "worldwide";
const hobby = "reading technology books";
const passion = "learn, earn and train others";
const fashion = "simple";
console.log("Is fruit === 'apple'? I predict false.");
console.log(fruit === "apple");
console.log("\nIs vehicle === 'airplane'? I predict true.");
console.log(vehicle === "airplane");
console.log("\nIs laptop === 'hp'? I predict false.");
console.log(laptop === "hp");
console.log("\nIs profession === 'freelance developer'? I predict true.");
console.log(profession === "freelance developer");
console.log("\nIs job === 'software engineer'? I predict false.");
console.log(job === "software engineer");
console.log("\nIs business === 'software house'? I predict true.");
console.log(business === "software house");
console.log("\nIs business_region === 'Pakistan'? I predict false.");
console.log(business_region === "Pakistan");
console.log("\nIs hobby === 'reading technology books'? I predict true.");
console.log(hobby === "reading technology books");
console.log("\nIs passion === 'procrastination'? I predict false.");
console.log(passion === "procrastination");
console.log("\nIs fashion === 'simple'? I predict true.");
console.log(fashion === "simple");