Skip to content

Commit 84ee4cf

Browse files
ifligusajpiano
authored andcommitted
Added 0 to the list of falsy values in JavaScript 101 Conditional Code article. Fixes #300. Fixes #271
1 parent 105a3ab commit 84ee4cf

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

page/javascript-101/conditional-code.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ In order to use flow control successfully, it's important to understand which ki
5959
NaN; // JavaScript's "not-a-number" variable
6060
null;
6161
undefined; // be careful -- undefined can be redefined!
62+
0; // the number zero
6263
```
6364

6465
## Conditional Variable Assignment with the Ternary Operator

0 commit comments

Comments
 (0)