We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2dd8f06 commit 5c3e269Copy full SHA for 5c3e269
truthy-falsy.js
@@ -0,0 +1,25 @@
1
+// truthy & falsy
2
+console.log(Boolean(0));
3
+console.log(Boolean(undefined));
4
+console.log(Boolean(true));
5
+console.log(Boolean(false));
6
+
7
+var money = 0;
8
+if( money=10){
9
10
+ console.log(`Don't spend all money`);
11
+}
12
13
+else{
14
+ console.log(`You should get a job `);
15
16
17
+let height ;
18
+if (height)
19
+{
20
+ console.log(`Height is defined`);
21
22
+else
23
24
+ console.log(`Height is not defined`);
25
0 commit comments