JavaScript · Junior · Question 13 of 75
Which of these values is falsy?
- ✓Correct answer:
0 - 2
'0' - 3
[]
Explanation
Falsy values: false, 0, -0, 0n, '', null, undefined, NaN. Everything else is truthy, including the string '0', an empty array [] and an empty object {}.