Skip to content

Commit 24565bc

Browse files
committed
Practice comparing values
1 parent 21c1378 commit 24565bc

1 file changed

Lines changed: 20 additions & 0 deletions

File tree

‎prep/compare.js‎

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
// 1
2+
hi = "hello" === "hello"
3+
console.log(hi)
4+
// true
5+
6+
// 2
7+
low = "CYF" === "cyf"
8+
console.log(low)
9+
// false
10+
11+
// 3
12+
const homeTown = "Newcastle"
13+
homeTown === "Liverpool"
14+
console.log(homeTown === "Liverpool")
15+
// false
16+
17+
// 4
18+
num = 42 === 42
19+
console.log(num)
20+
// true

0 commit comments

Comments
 (0)