1/*
2 Yes.
3 Full list of falsy values:
4 Anything evaluated to be 0
5 '', "", or ``
6 null
7 undefined
8 NaN
9 Obviously false
10 Big integers relative to 0n
11 -------------------------------------------------------------------------
12 To clarify, line 31 will print false.
13*/
14var someCheckIsTrue = false;
15const checks = [
16 0,
17 '',
18 "",
19 ``,
20 null,
21 undefined,
22 NaN,
23 false,
24 0n
25];
26for (const check of checks) {
27 if (check) {
28 someCheckIsTrue = true;
29 }
30}
31console.log(someCheckIsTrue);