Skip to content

Commit 696e2c6

Browse files
committed
truthy falsy
1 parent 334a65a commit 696e2c6

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

28_truthy_falsy.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
// truthy and falsy
2+
// "",'',``,0,-0,NaN, false,null, undefined
3+
4+
const text = 0;
5+
6+
if (text) {
7+
console.log('its true');
8+
} else {
9+
console.log('its false');
10+
}

0 commit comments

Comments
 (0)