Skip to content

Commit 395d593

Browse files
feat(topic-1): add relational operators
1 parent ffe7992 commit 395d593

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

Topic1/07-relational-operators.js

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
console.log(10 > 5);
2+
console.log(10 < 5);
3+
console.log(10 >= 5);
4+
console.log(10 <= 7);
5+
console.log(10 != 5);
6+
console.log(10 !== 5);
7+
8+
// =
9+
let a = 12; // assignment operator
10+
11+
// ==
12+
console.log(a == "12"); // true
13+
14+
// ===
15+
console.log(a === "12"); // false

0 commit comments

Comments
 (0)